diff options
| author | Selene ToyKeeper | 2023-11-30 13:37:23 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-30 13:37:23 -0700 |
| commit | e33111d38f729b47e03e9699eeb5b73637a92496 (patch) | |
| tree | a87c6d9dd18acfccfd4f90a27255b4425704b1bf /ui | |
| parent | oops, flashing script should actually flash ... not just echo a command (diff) | |
| download | anduril-e33111d38f729b47e03e9699eeb5b73637a92496.tar.gz anduril-e33111d38f729b47e03e9699eeb5b73637a92496.tar.bz2 anduril-e33111d38f729b47e03e9699eeb5b73637a92496.zip | |
fixed RGB aux turning on in momentary mode when post-off voltage was enabled
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/anduril/momentary-mode.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/ui/anduril/momentary-mode.c b/ui/anduril/momentary-mode.c index 94f6bc2..327302a 100644 --- a/ui/anduril/momentary-mode.c +++ b/ui/anduril/momentary-mode.c @@ -47,14 +47,17 @@ uint8_t momentary_state(Event event, uint16_t arg) { } else { #endif + // turn off lighted button + #ifdef USE_INDICATOR_LED + indicator_led(0); + #elif defined(USE_AUX_RGB_LEDS) + rgb_led_set(0); + #endif + #ifdef USE_BUTTON_LED + button_led_set(0); + #endif if (arg > TICKS_PER_SECOND*5) { // sleep after 5 seconds go_to_standby = 1; // sleep while light is off - // turn off lighted button - #ifdef USE_INDICATOR_LED - indicator_led(0); - #elif defined(USE_AUX_RGB_LEDS) - rgb_led_update(0, 0); - #endif } #ifdef USE_STROBE_STATE } |
