aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-09-18 23:08:55 -0600
committerSelene ToyKeeper2020-09-18 23:08:55 -0600
commitf80ee0d7217e94a1fdfcde531692854f5bad3723 (patch)
treea55a7382c3a0597b86ad2c4e4b01cae2fab7a0ba
parentadded USE_2C_MAX_TURBO option from Tom E (diff)
downloadanduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.tar.gz
anduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.tar.bz2
anduril-f80ee0d7217e94a1fdfcde531692854f5bad3723.zip
clearer comments about "Ramp 2C" behaviors with each build option
-rw-r--r--spaghetti-monster/anduril/ramp-mode.c13
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 {
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.