aboutsummaryrefslogtreecommitdiffstats
path: root/fw/dac.c
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-10-24 16:55:59 -0400
committerSam Anthony <sam@samanthony.xyz>2025-10-24 16:55:59 -0400
commit01bd9cbc6fe64f236a1b467f011e56dcae0306e7 (patch)
treedc74cfa742d77befcbe58715e3ae7a2727c89781 /fw/dac.c
parenta0c6bbb21c5e7d9e0090e66c316cf88ef7f0726b (diff)
downloadcan-gauge-interface-01bd9cbc6fe64f236a1b467f011e56dcae0306e7.zip
table module
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) {