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
         }
414
         }
415
     } else if (state == fullauto_fert_run) {
415
     } else if (state == fullauto_fert_run) {
416
         // allow user to stop fertizilers and continue with tank filling
416
         // allow user to stop fertizilers and continue with tank filling
417
+        plants.abort();
418
+        stop_time = millis();
417
         auto wl = plants.getWaterlevel();
419
         auto wl = plants.getWaterlevel();
418
         if ((wl != Plants::full) && (wl != Plants::invalid)) {
420
         if ((wl != Plants::full) && (wl != Plants::invalid)) {
419
             // if the waterlevel is currently empty, we
421
             // if the waterlevel is currently empty, we

Loading…
Cancel
Save