aboutsummaryrefslogtreecommitdiff
path: root/fsm/chan-aux.c
diff options
context:
space:
mode:
authorSiteRelEnby2024-04-20 14:28:02 -0500
committerSiteRelEnby2024-04-20 14:28:02 -0500
commitcf3d68ce31ca47eab4980e8b07a44345ea44cebc (patch)
tree8a83bc31998f8121d9b07994adb8261066959a84 /fsm/chan-aux.c
parentAdd a feature to make RGB voltage configurable (diff)
parentinclude hardware-specific readme files in the release .zip (diff)
downloadanduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.gz
anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.bz2
anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.zip
Merge branch 'main' into rgb-voltage-configurable
Diffstat (limited to '')
-rw-r--r--fsm/chan-aux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsm/chan-aux.c b/fsm/chan-aux.c
index e04e6a2..239316a 100644
--- a/fsm/chan-aux.c
+++ b/fsm/chan-aux.c
@@ -4,7 +4,7 @@
#pragma once
void set_level_aux(uint8_t level) {
- indicator_led(!(!(level)) << 1); // high (or off)
+ indicator_led((!(!(level)) << 1) + 1); // high (level > 0) or low
}
bool gradual_tick_null(uint8_t gt) { return true; } // do nothing