Skip to content

Commit 4343490

Browse files
Merge pull request #48 from techniccontroller/main
Merge changes from main
2 parents b808fff + 238322f commit 4343490

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
secrets.h
22
/.vscode
33
/build
4-
log.txt
4+
log*.txt

wordclock_esp8266.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ void setup() {
246246
// set custom ip for portal
247247
//wifiManager.setAPStaticIPConfig(IPAdress_AccessPoint, Gateway_AccessPoint, Subnetmask_AccessPoint);
248248

249+
// set a custom hostname
250+
wifiManager.setHostname(hostname);
251+
249252
// fetches ssid and pass from eeprom and tries to connect
250253
// if it does not connect it starts an access point with the specified name
251254
// here "wordclockAP"
@@ -354,7 +357,7 @@ void setup() {
354357
loadBrightnessSettingsFromEEPROM();
355358
loadColorShiftStateFromEEPROM();
356359

357-
if(!ESP.getResetReason().equals("Software/System restart")){
360+
if(ESP.getResetReason().equals("Power On") || ESP.getResetReason().equals("External System")){
358361
// test quickly each LED
359362
for(int r = 0; r < HEIGHT; r++){
360363
for(int c = 0; c < WIDTH; c++){

0 commit comments

Comments
 (0)