firmware wip - dont clear display when unconfigured.
This commit is contained in:
parent
7507145222
commit
56abdbbc84
1 changed files with 5 additions and 3 deletions
|
@ -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>❗ ❗ Wipeing EEPROM</h1>";
|
body += "<h1>❗❗ 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>";
|
||||||
|
|
Loading…
Reference in a new issue