From 56abdbbc84455375e52b3563019aa2091fde088f Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 3 May 2024 02:07:40 +0200 Subject: [PATCH] firmware wip - dont clear display when unconfigured. --- Arduino/CanGrow/CanGrow.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 2d9a5d7..21c12be 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -1523,8 +1523,10 @@ void setup() { Serial.println(".:: CanGrow Ready ::."); delay(1000); - display.clearDisplay(); - display.display(); + if(strlen(GrowName) > 0 ) { + display.clearDisplay(); + display.display(); + } } @@ -1805,7 +1807,7 @@ void SysWipe() { webserver.send(200, "text/html", body); wipeEEPROM(); } else { - body += "

❗ ❗ Wipeing EEPROM

"; + body += "

❗❗ Wipeing EEPROM

"; body += "
All settings will be removed!!
"; body += "
Please confirm wiping the EEPROM"; body += "
";