浏览代码

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

正在加载...
取消
保存