Skip to content

Commit

Permalink
fsm-misc: fix AUX blinking on side facing AUX LED
Browse files Browse the repository at this point in the history
In the case where USE_AUX_RGB_LEDS_WHILE_ON is defined, such as D1v2
and K1, set_level(0) won't turn off the AUX LED so the AUX blinking
won't work. Fix it so we can still use side facing AUX (RGB button LED)
to blink digits.
  • Loading branch information
starryalley committed Jun 14, 2023
1 parent 1cce9f4 commit df179f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spaghetti-monster/fsm-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ uint8_t blink_digit(uint8_t num) {
#endif
nice_delay_ms(ontime);
set_level(0);
// in the case of side facing AUX, set_level(0) won't turn off AUX.
// Let's do it here.
#ifdef USE_AUX_RGB_LEDS_WHILE_ON
rgb_led_update(RGB_OFF, 0);
#endif
nice_delay_ms(BLINK_SPEED * 3 / 12);
}
return nice_delay_ms(BLINK_SPEED * 8 / 12);
Expand Down

0 comments on commit df179f4

Please sign in to comment.