aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-misc.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-05-02 05:19:50 -0600
committerSelene ToyKeeper2023-05-02 05:19:50 -0600
commite8d7e8ea11696bb2cad60c309527d02f130f7687 (patch)
tree5359ec480940ff2c7ed7e38e5cc847086ed3d70f /spaghetti-monster/fsm-misc.h
parentconverted Wurkkos TS10 build (and made its ramp smoother w/ better low modes) (diff)
downloadanduril-e8d7e8ea11696bb2cad60c309527d02f130f7687.tar.gz
anduril-e8d7e8ea11696bb2cad60c309527d02f130f7687.tar.bz2
anduril-e8d7e8ea11696bb2cad60c309527d02f130f7687.zip
added ability to set channel mode for number readouts (batt check, temp check, version check)
Press 3C in batt check mode to change the blink channel. Also fixed TS10 stepped ramp ceiling value.
Diffstat (limited to 'spaghetti-monster/fsm-misc.h')
-rw-r--r--spaghetti-monster/fsm-misc.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/spaghetti-monster/fsm-misc.h b/spaghetti-monster/fsm-misc.h
index 68929c2..8988337 100644
--- a/spaghetti-monster/fsm-misc.h
+++ b/spaghetti-monster/fsm-misc.h
@@ -9,10 +9,15 @@ void auto_clock_speed();
#endif
#if defined(USE_BLINK_NUM) || defined(USE_BLINK_DIGIT)
-#ifndef BLINK_BRIGHTNESS
-#define BLINK_BRIGHTNESS (MAX_LEVEL/6)
-#endif
-uint8_t blink_digit(uint8_t num);
+ #ifndef BLINK_BRIGHTNESS
+ #define BLINK_BRIGHTNESS (MAX_LEVEL/6)
+ #endif
+ #if defined(USE_CFG) && defined(DEFAULT_BLINK_CHANNEL)
+ #define BLINK_CHANNEL cfg.blink_channel
+ #elif defined(DEFAULT_BLINK_CHANNEL)
+ #define BLINK_CHANNEL DEFAULT_BLINK_CHANNEL
+ #endif
+ uint8_t blink_digit(uint8_t num);
#endif
#ifdef USE_BLINK_NUM