Преглед изворни кода

fix fert pumps running after pressing button to stop them

Thomas Buck пре 2 година
родитељ
комит
5221bbb176
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2
    0
      src/Statemachine.cpp

+ 2
- 0
src/Statemachine.cpp Прегледај датотеку

@@ -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…
Откажи
Сачувај