Wifi was started twice

This commit is contained in:
fvanroie 2020-04-08 13:49:29 +02:00
parent a517c5f579
commit 54127235c9

View File

@ -62,7 +62,7 @@ void setup()
/* Init Storage */ /* Init Storage */
#if HASP_USE_EEPROM #if HASP_USE_EEPROM
eepromSetup(); // eepromSetup(); // Don't start at boot, only at write
#endif #endif
#if HASP_USE_SPIFFS #if HASP_USE_SPIFFS
@ -92,7 +92,6 @@ void setup()
haspSetup(); haspSetup();
#if HASP_USE_WIFI #if HASP_USE_WIFI
wifiSetup();
#if HASP_USE_HTTP #if HASP_USE_HTTP
httpSetup(); httpSetup();
@ -120,7 +119,7 @@ void setup()
buttonSetup(); buttonSetup();
#endif #endif
mainLastLoopTime = millis() - 1000; mainLastLoopTime = millis() - 1000; // reset loop counter
} }
void loop() void loop()