From c33100dcfbaee04e6992191defa3bf1e6be80b1e Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Wed, 3 Nov 2021 04:46:56 -0600 Subject: reset tint while changing tint ramp style --- spaghetti-monster/anduril/ramp-mode.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spaghetti-monster/anduril/ramp-mode.c b/spaghetti-monster/anduril/ramp-mode.c index 851f5a4..93b936a 100644 --- a/spaghetti-monster/anduril/ramp-mode.c +++ b/spaghetti-monster/anduril/ramp-mode.c @@ -552,7 +552,11 @@ uint8_t ramp_extras_config_state(Event event, uint16_t arg) { void globals_config_save(uint8_t step, uint8_t value) { if (0) {} #ifdef USE_TINT_RAMPING - else if (step == 1+tint_style_config_step) { tint_style = value; } + else if (step == 1+tint_style_config_step) { + tint_style = !(!(value)); + // set tint to middle or edge depending on style being smooth or toggle + tint = tint_style ? 1 : 127; + } #endif #ifdef USE_JUMP_START else if (step == 1+jump_start_config_step) { jump_start_level = value; } -- cgit v1.2.3