From 04a48e44b25d1c42dc26f837586a7503bb74b749 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 24 Aug 2023 17:08:01 -0600 Subject: 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 --- spaghetti-monster/fsm-misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spaghetti-monster/fsm-misc.c') 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); } -- cgit v1.2.3