Browse Source

fix fert pumps running after pressing button to stop them

Thomas Buck 2 years ago
parent
commit
5221bbb176
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/Statemachine.cpp

+ 2
- 0
src/Statemachine.cpp View File

@@ -414,6 +414,8 @@ void Statemachine::input(int n) {
414 414
         }
415 415
     } else if (state == fullauto_fert_run) {
416 416
         // allow user to stop fertizilers and continue with tank filling
417
+        plants.abort();
418
+        stop_time = millis();
417 419
         auto wl = plants.getWaterlevel();
418 420
         if ((wl != Plants::full) && (wl != Plants::invalid)) {
419 421
             // if the waterlevel is currently empty, we

Loading…
Cancel
Save