firmware wip - pump mode 3, write PumpLastOn to EEPROM

This commit is contained in:
Marcus 2024-06-17 01:55:58 +02:00
parent 37e0b33cf3
commit f8523e1577
2 changed files with 2 additions and 1 deletions

View file

@ -721,6 +721,7 @@ void controlPUMP() {
} else { } else {
digitalWrite(PinPUMP, LOW); digitalWrite(PinPUMP, LOW);
PumpLastOn = timeClient.getEpochTime(); PumpLastOn = timeClient.getEpochTime();
EEPROM.put(237, PumpLastOn);
PumpOnTimePassed = 0; PumpOnTimePassed = 0;
} }
// when valSoilmoistureAvg is greater then the Low value, // when valSoilmoistureAvg is greater then the Low value,

View file

@ -1,5 +1,5 @@
/* CanGrow_Version.h gets generated from cangrow.sh */ /* CanGrow_Version.h gets generated from cangrow.sh */
const char* CanGrowVer = "0.1-dev"; const char* CanGrowVer = "0.1-dev";
const char* CanGrowBuild = "a51cd81-20240617013905"; const char* CanGrowBuild = "37e0b33-20240617014909";