aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/anduril/ramp-mode.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/anduril/ramp-mode.c b/ui/anduril/ramp-mode.c
index aff7be7..68b24ae 100644
--- a/ui/anduril/ramp-mode.c
+++ b/ui/anduril/ramp-mode.c
@@ -569,10 +569,14 @@ uint8_t simple_ui_config_state(Event event, uint16_t arg) {
#ifdef USE_RAMP_EXTRAS_CONFIG
void ramp_extras_config_save(uint8_t step, uint8_t value) {
+ if (0) { } //syntactic trick so USE_MANUAL_MEMORY can be #undef
+
+ #ifdef USE_MANUAL_MEMORY
// item 1: disable manual memory, go back to automatic
- if (manual_memory_config_step == step) {
+ else if (manual_memory_config_step == step) {
cfg.manual_memory = 0;
}
+ #endif
#ifdef USE_MANUAL_MEMORY_TIMER
// item 2: set manual memory timer duration
@@ -707,6 +711,7 @@ void set_level_and_therm_target(uint8_t level) {
#define set_level_and_therm_target(level) set_level(level)
#endif
+#ifdef USE_MANUAL_MEMORY
void manual_memory_restore() {
memorized_level = cfg.manual_memory;
#if NUM_CHANNEL_MODES > 1
@@ -728,6 +733,7 @@ void manual_memory_save() {
cfg.manual_memory_channel_args[i] = cfg.channel_mode_args[i];
#endif
}
+#endif
#ifdef USE_SUNSET_TIMER
void reset_sunset_timer() {
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.