diff --git a/Arduino/CanGrow/CanGrow_SysFunctions.h b/Arduino/CanGrow/CanGrow_SysFunctions.h index f6e3c88..369bf60 100644 --- a/Arduino/CanGrow/CanGrow_SysFunctions.h +++ b/Arduino/CanGrow/CanGrow_SysFunctions.h @@ -731,6 +731,7 @@ void controlPUMP() { setOutput(3, 0); //digitalWrite(PinPUMP, LOW); EEPROM.put(237, PumpLastOn); + EEPROM.commit(); //write to EEPROM PumpOnTimePassed = 0; } // otherwise check which PumpMode to use @@ -796,6 +797,7 @@ void controlPUMP() { //digitalWrite(PinPUMP, LOW); PumpLastOn = timeClient.getEpochTime(); EEPROM.put(237, PumpLastOn); + EEPROM.commit(); //write to EEPROM PumpOnTimePassed = 0; } // when valSoilmoistureAvg is greater then the Low value, diff --git a/Arduino/CanGrow/CanGrow_WebFunctions.h b/Arduino/CanGrow/CanGrow_WebFunctions.h index ec8f842..4ead04c 100644 --- a/Arduino/CanGrow/CanGrow_WebFunctions.h +++ b/Arduino/CanGrow/CanGrow_WebFunctions.h @@ -210,20 +210,32 @@ void Syslogout() { void SysMaintenance() { String body = returnHTMLheader(); - if( (webserver.hasArg("on")) ) { + if( (webserver.hasArg("DimmOn")) ) { MaintenanceMode = true; MaintenanceStarted = millis(); - body += "