diff options
| author | Selene ToyKeeper | 2018-09-29 00:52:55 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-09-29 00:52:55 -0600 |
| commit | 992627373f3e41e2b8909f459a8119f133cecbfd (patch) | |
| tree | 44f688496d61e48508329d161246467d9da54e55 | |
| parent | fixed bug: clicking MAX_CLICKS+1 times and holding the final click would hang... (diff) | |
| download | anduril-992627373f3e41e2b8909f459a8119f133cecbfd.tar.gz anduril-992627373f3e41e2b8909f459a8119f133cecbfd.tar.bz2 anduril-992627373f3e41e2b8909f459a8119f133cecbfd.zip | |
Fixed ramp style toggle going to the wrong level when at moon.
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index c8517af..fdbc7d5 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -524,7 +524,7 @@ uint8_t steady_state(EventPtr event, uint16_t arg) { // 3 clicks: toggle smooth vs discrete ramping else if (event == EV_3clicks) { ramp_style = !ramp_style; - memorized_level = nearest_level(memorized_level); + memorized_level = nearest_level(actual_level); #ifdef USE_THERMAL_REGULATION target_level = memorized_level; #ifdef USE_SET_LEVEL_GRADUALLY |
