From d5649fae89c5cde00dcbe269e78e2a7e8ff85b8d Mon Sep 17 00:00:00 2001 From: Edgar W Date: Sat, 15 Feb 2025 00:07:48 +0100 Subject: [PATCH 1/3] Update reset reason check in setup function --- wordclock_esp8266.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordclock_esp8266.ino b/wordclock_esp8266.ino index b28faea..e1918ef 100644 --- a/wordclock_esp8266.ino +++ b/wordclock_esp8266.ino @@ -352,7 +352,7 @@ void setup() { loadBrightnessSettingsFromEEPROM(); loadColorShiftStateFromEEPROM(); - if(!ESP.getResetReason().equals("Software/System restart")){ + if(ESP.getResetReason().equals("Power On") || ESP.getResetReason().equals("External System")){ // test quickly each LED for(int r = 0; r < HEIGHT; r++){ for(int c = 0; c < WIDTH; c++){ From 50549911fa9bbe4cf60e017358b375d91c0738ac Mon Sep 17 00:00:00 2001 From: Edgar W Date: Sat, 15 Feb 2025 00:16:57 +0100 Subject: [PATCH 2/3] Add custom hostname setting in setup function --- wordclock_esp8266.ino | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wordclock_esp8266.ino b/wordclock_esp8266.ino index e1918ef..df16870 100644 --- a/wordclock_esp8266.ino +++ b/wordclock_esp8266.ino @@ -244,6 +244,9 @@ void setup() { // set custom ip for portal //wifiManager.setAPStaticIPConfig(IPAdress_AccessPoint, Gateway_AccessPoint, Subnetmask_AccessPoint); + // set a custom hostname + wifiManager.setHostname(hostname); + // fetches ssid and pass from eeprom and tries to connect // if it does not connect it starts an access point with the specified name // here "wordclockAP" From 238322f25927d83d580321d240aea4aee8d872de Mon Sep 17 00:00:00 2001 From: Edgar W Date: Sat, 15 Feb 2025 12:47:44 +0100 Subject: [PATCH 3/3] Update .gitignore to ignore all log files --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dbf19cc..fbc06d2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ secrets.h /.vscode /build -log.txt \ No newline at end of file +log*.txt \ No newline at end of file