properly set last run time, as it apparently was missing
This commit is contained in:
parent
6a97215a04
commit
e70e467e9b
@ -577,6 +577,7 @@ void pumpActiveLoop()
|
|||||||
log(LOG_LEVEL_INFO, "Starting pump " + String(pumpToRun) , LOG_PUMP_STARTED_CODE );
|
log(LOG_LEVEL_INFO, "Starting pump " + String(pumpToRun) , LOG_PUMP_STARTED_CODE );
|
||||||
initPumpLogic();
|
initPumpLogic();
|
||||||
pumpStarted = true;
|
pumpStarted = true;
|
||||||
|
rtcLastWateringPlant[pumpToRun] = getCurrentTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FLOWMETER_PIN
|
#ifdef FLOWMETER_PIN
|
||||||
@ -620,6 +621,8 @@ void pumpActiveLoop()
|
|||||||
}
|
}
|
||||||
//disable loop, to prevent multi processing
|
//disable loop, to prevent multi processing
|
||||||
pumpStarted = false;
|
pumpStarted = false;
|
||||||
|
//if runtime is larger than cooldown, else it would run continously
|
||||||
|
rtcLastWateringPlant[pumpToRun] = getCurrentTime();
|
||||||
espDeepSleep();
|
espDeepSleep();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user