File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
ESPGeiger/src/ConfigManager Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,13 @@ bool ConfigManager::autoConnect()
251
251
252
252
uint8_t connection_result = WiFiManager::getLastConxResult ();
253
253
if (connection_result == WL_WRONG_PASSWORD) {
254
+ Log::console (PSTR (" Config: WiFi password incorrect" );
254
255
WiFiManager::setEnableConfigPortal (true );
255
256
WiFiManager::setConfigPortalTimeout (300 );
257
+ Log::console (PSTR (" Config: Entering setup for 300s" ));
258
+ #if defined(SSD1306_DISPLAY)
256
259
display.setupWifi (hostName);
260
+ #endif
257
261
result = WiFiManager::autoConnect (hostName);
258
262
if (!result) {
259
263
Log::console (PSTR (" WiFi password incorrect ... Restarting ... " ));
@@ -271,7 +275,10 @@ bool ConfigManager::autoConnect()
271
275
if (WiFiManager::getWiFiIsSaved ()) {
272
276
WiFiManager::setEnableConfigPortal (true );
273
277
WiFiManager::setConfigPortalTimeout (90 );
278
+ Log::console (PSTR (" Config: Entering setup for 90s" ));
279
+ #if defined(SSD1306_DISPLAY)
274
280
display.setupWifi (hostName);
281
+ #endif
275
282
result = WiFiManager::autoConnect (hostName);
276
283
}
277
284
You can’t perform that action at this time.
0 commit comments