aboutsummaryrefslogtreecommitdiff
path: root/fsm/chan-aux.c
diff options
context:
space:
mode:
authorAndrew Slotnick2024-02-05 16:37:41 -0500
committeraslotnick2024-04-17 22:15:41 -0400
commit7b766a7745fbf7debb90667d659f1cb546ec2a0d (patch)
tree55ca2038272c54080ed48eb6ec4732a47f74ca70 /fsm/chan-aux.c
parentavr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control (diff)
downloadanduril-7b766a7745fbf7debb90667d659f1cb546ec2a0d.tar.gz
anduril-7b766a7745fbf7debb90667d659f1cb546ec2a0d.tar.bz2
anduril-7b766a7745fbf7debb90667d659f1cb546ec2a0d.zip
use low aux for chan-aux level 0
Diffstat (limited to 'fsm/chan-aux.c')
-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