Skip to content

Commit f718da8

Browse files
committed
fix crash when starting board without setting wifi mode
1 parent 32bc173 commit f718da8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/esp-config-page-wireless.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ namespace ESP_CONFIG_PAGE
224224
addServerHandler((char*) F("/config/wifi"), HTTP_POST, wifiSet);
225225
connectionTimeoutCounter = millis() - connectionTimeoutMs;
226226
WiFi.setAutoReconnect(true);
227+
WiFi.mode(WIFI_STA);
227228
}
228229

229230
inline void wirelessLoop()

0 commit comments

Comments
 (0)