소스 검색

fix fert pumps running after pressing button to stop them

Thomas Buck 3 년 전
부모
커밋
5221bbb176
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/Statemachine.cpp

+ 2
- 0
src/Statemachine.cpp 파일 보기

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…
취소
저장