Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
secrets.h
/.vscode
/build
log.txt
log*.txt
5 changes: 4 additions & 1 deletion wordclock_esp8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -352,7 +355,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++){
Expand Down