diff options
| author | Selene ToyKeeper | 2023-08-24 17:08:01 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-08-24 17:08:01 -0600 |
| commit | 04a48e44b25d1c42dc26f837586a7503bb74b749 (patch) | |
| tree | fb4b0536ef8d9b05fa606d5ab082a30addf08781 /spaghetti-monster/fsm-misc.c | |
| parent | fixed issue where tactical mode overrode strobe group memory (diff) | |
| download | anduril-04a48e44b25d1c42dc26f837586a7503bb74b749.tar.gz anduril-04a48e44b25d1c42dc26f837586a7503bb74b749.tar.bz2 anduril-04a48e44b25d1c42dc26f837586a7503bb74b749.zip | |
added channel mode per strobe mode, and made FSM channel mode more flexible,
and fixed issue in tactical mode where strobes wouldn't stop on button release
Diffstat (limited to 'spaghetti-monster/fsm-misc.c')
| -rw-r--r-- | spaghetti-monster/fsm-misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c index 0aeb7c3..bc10ea1 100644 --- a/spaghetti-monster/fsm-misc.c +++ b/spaghetti-monster/fsm-misc.c @@ -35,7 +35,7 @@ uint8_t blink_digit(uint8_t num) { #ifdef BLINK_CHANNEL // channel is set per blink, to prevent issues // if another mode interrupts us (like a config menu) - uint8_t old_channel = CH_MODE; + uint8_t old_channel = channel_mode; #endif for (; num>0; num--) { @@ -45,7 +45,7 @@ uint8_t blink_digit(uint8_t num) { #endif set_level(BLINK_BRIGHTNESS); #ifdef BLINK_CHANNEL - CH_MODE = old_channel; + channel_mode = old_channel; #endif nice_delay_ms(ontime); @@ -54,7 +54,7 @@ uint8_t blink_digit(uint8_t num) { #endif set_level(0); #ifdef BLINK_CHANNEL - CH_MODE = old_channel; + channel_mode = old_channel; #endif nice_delay_ms(BLINK_SPEED * 3 / 12); } |
