diff options
| author | Selene ToyKeeper | 2020-09-18 23:08:55 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2020-09-18 23:08:55 -0600 |
| commit | f80ee0d7217e94a1fdfcde531692854f5bad3723 (patch) | |
| tree | a55a7382c3a0597b86ad2c4e4b01cae2fab7a0ba /spaghetti-monster | |
| parent | added USE_2C_MAX_TURBO option from Tom E (diff) | |
| download | anduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.tar.gz anduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.tar.bz2 anduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.zip | |
clearer comments about "Ramp 2C" behaviors with each build option
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/ramp-mode.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/spaghetti-monster/anduril/ramp-mode.c b/spaghetti-monster/anduril/ramp-mode.c index 944e0e2..e95bc6c 100644 --- a/spaghetti-monster/anduril/ramp-mode.c +++ b/spaghetti-monster/anduril/ramp-mode.c @@ -100,17 +100,19 @@ uint8_t steady_state(Event event, uint16_t arg) { } // 2 clicks: go to/from highest level else if (event == EV_2clicks) { - // simple UI: to/from ceiling - // full UI: to/from ceiling if mem < ceiling, - // or to/from turbo if mem >= ceiling uint8_t turbo_level; - #ifdef USE_2C_MAX_TURBO // 2C = turbo (Anduril1 behavior) + #ifdef USE_2C_MAX_TURBO + // simple UI: to/from ceiling + // full UI: to/from turbo (Anduril1 behavior) #ifdef USE_SIMPLE_UI if (simple_ui_active) turbo_level = mode_max; else #endif turbo_level = MAX_LEVEL; - #else // 2C = ceiling, unless already at ceiling (Anduril2 default) + #else + // simple UI: to/from ceiling + // full UI: to/from ceiling if mem < ceiling, + // or to/from turbo if mem >= ceiling if ((memorized_level < mode_max) #ifdef USE_SIMPLE_UI || simple_ui_active @@ -120,7 +122,6 @@ uint8_t steady_state(Event event, uint16_t arg) { #endif if (actual_level < turbo_level) { - // true turbo, not the mode-specific ceiling set_level_and_therm_target(turbo_level); } else { |
