aboutsummaryrefslogtreecommitdiffstats
path: root/fw/dac.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/dac.c')
-rw-r--r--fw/dac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fw/dac.c b/fw/dac.c
index 0c9fb90..aa83602 100644
--- a/fw/dac.c
+++ b/fw/dac.c
@@ -31,7 +31,7 @@ dacInit(void) {
static void
set(U8 dacNum, Conf conf, U16 level) {
- lshiftU16(&level, 2u); // D0 at bit 2
+ level = lshiftU16(level, 2u); // D0 at bit 2
level.hi = (U8)conf | (level.hi & 0x0F); // set config bits
if (dacNum == 1u) {