firmware wip - dont clear display when unconfigured.

This commit is contained in:
Marcus 2024-05-03 02:07:40 +02:00
parent 7507145222
commit 56abdbbc84

View file

@ -1523,8 +1523,10 @@ void setup() {
Serial.println(".:: CanGrow Ready ::."); Serial.println(".:: CanGrow Ready ::.");
delay(1000); delay(1000);
if(strlen(GrowName) > 0 ) {
display.clearDisplay(); display.clearDisplay();
display.display(); display.display();
}
} }
@ -1805,7 +1807,7 @@ void SysWipe() {
webserver.send(200, "text/html", body); webserver.send(200, "text/html", body);
wipeEEPROM(); wipeEEPROM();
} else { } else {
body += "<h1>&#10071; &#10071; Wipeing EEPROM</h1>"; body += "<h1>&#10071;&#10071; Wipeing EEPROM</h1>";
body += "<div class='warnmsg'>All settings will be removed!!<br>"; body += "<div class='warnmsg'>All settings will be removed!!<br>";
body += "<br>Please confirm wiping the EEPROM"; body += "<br>Please confirm wiping the EEPROM";
body += "<form action='/system/wipe'><input type='hidden' name='confirmed' value='true' /><input type='submit' value='Confirm wiping' /></form>"; body += "<form action='/system/wipe'><input type='hidden' name='confirmed' value='true' /><input type='submit' value='Confirm wiping' /></form>";