aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-ramping.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-08 21:55:14 -0600
committerSelene ToyKeeper2020-07-08 21:55:14 -0600
commit8d035a179e348c049d920111553334a490b2b8fd (patch)
tree31d6bd17ec674e58fc9fbbec78c7c6be13e98c5c /spaghetti-monster/fsm-ramping.c
parentfixed D4v2.5 button LED behavior (diff)
downloadanduril-8d035a179e348c049d920111553334a490b2b8fd.tar.gz
anduril-8d035a179e348c049d920111553334a490b2b8fd.tar.bz2
anduril-8d035a179e348c049d920111553334a490b2b8fd.zip
made lighted button go low/high based on DEFAULT_LEVEL instead of MAX_1x7135,
because the MAX_1x7135 level is wrong on some lights (like the D4v2.5) ... and generally adjusted anything else necessary to make that work. (including a lower default on D18 and D4Sv2, which were both too high)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.c')
-rw-r--r--spaghetti-monster/fsm-ramping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-ramping.c b/spaghetti-monster/fsm-ramping.c
index bae601e..c3ad8b4 100644
--- a/spaghetti-monster/fsm-ramping.c
+++ b/spaghetti-monster/fsm-ramping.c
@@ -33,7 +33,7 @@ void set_level(uint8_t level) {
#ifdef USE_INDICATOR_LED_WHILE_RAMPING
#ifdef USE_INDICATOR_LED
if (! go_to_standby)
- indicator_led((level > 0) + (level > MAX_1x7135));
+ indicator_led((level > 0) + (level > DEFAULT_LEVEL));
#endif
//if (level > MAX_1x7135) indicator_led(2);
//else if (level > 0) indicator_led(1);
@@ -47,7 +47,7 @@ void set_level(uint8_t level) {
#ifdef USE_AUX_RGB_LEDS
rgb_led_set(0);
#ifdef USE_BUTTON_LED
- button_led_set((level > 0) + (level > MAX_1x7135));
+ button_led_set((level > 0) + (level > DEFAULT_LEVEL));
#endif
#endif
}