From f8523e157793d68337aecaa4b69870b5c6cd17cb Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 17 Jun 2024 01:55:58 +0200 Subject: [PATCH] firmware wip - pump mode 3, write PumpLastOn to EEPROM --- Arduino/CanGrow/CanGrow_SysFunctions.h | 1 + Arduino/CanGrow/CanGrow_Version.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Arduino/CanGrow/CanGrow_SysFunctions.h b/Arduino/CanGrow/CanGrow_SysFunctions.h index dddcaf6..cc9c266 100644 --- a/Arduino/CanGrow/CanGrow_SysFunctions.h +++ b/Arduino/CanGrow/CanGrow_SysFunctions.h @@ -721,6 +721,7 @@ void controlPUMP() { } else { digitalWrite(PinPUMP, LOW); PumpLastOn = timeClient.getEpochTime(); + EEPROM.put(237, PumpLastOn); PumpOnTimePassed = 0; } // when valSoilmoistureAvg is greater then the Low value, diff --git a/Arduino/CanGrow/CanGrow_Version.h b/Arduino/CanGrow/CanGrow_Version.h index cd3b8ad..c0088f5 100644 --- a/Arduino/CanGrow/CanGrow_Version.h +++ b/Arduino/CanGrow/CanGrow_Version.h @@ -1,5 +1,5 @@ /* CanGrow_Version.h gets generated from cangrow.sh */ const char* CanGrowVer = "0.1-dev"; -const char* CanGrowBuild = "a51cd81-20240617013905"; +const char* CanGrowBuild = "37e0b33-20240617014909";