|
|
@ -126,6 +126,11 @@ void gui_loop_iter(GuiEvent message) |
|
|
|
if (app_config.moisture_enable) { |
|
|
|
if (app_config.moisture_enable) { |
|
|
|
if (s_app.moisture_pt > app_config.moisture_threshold_percent) { |
|
|
|
if (s_app.moisture_pt > app_config.moisture_threshold_percent) { |
|
|
|
// watering not needed
|
|
|
|
// watering not needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Pretend we started the cycle, so we don't get into this loop again and again for the whole minute
|
|
|
|
|
|
|
|
s_app.last_cycle_time.hour = s_app.rtc_time.hour; |
|
|
|
|
|
|
|
s_app.last_cycle_time.minute = s_app.rtc_time.minute; |
|
|
|
|
|
|
|
s_app.cycle_time_checking = false; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|