mirror of https://github.com/arendst/Tasmota.git
Fix intermittent ESP32 serial lost on restart
This commit is contained in:
parent
3c5cbade63
commit
1e9c5ad40e
|
@ -216,7 +216,7 @@ void WifiBegin(uint8_t flag, uint8_t channel) {
|
||||||
if (WiFi.getMode() != WIFI_AP_STA || !RgxApUp()) { // Preserve range extender connections (#17103)
|
if (WiFi.getMode() != WIFI_AP_STA || !RgxApUp()) { // Preserve range extender connections (#17103)
|
||||||
#endif // USE_WIFI_RANGE_EXTENDER
|
#endif // USE_WIFI_RANGE_EXTENDER
|
||||||
WiFi.disconnect(true); // Delete SDK wifi config
|
WiFi.disconnect(true); // Delete SDK wifi config
|
||||||
delay(200);
|
delay(10);
|
||||||
WifiSetMode(WIFI_STA); // Disable AP mode
|
WifiSetMode(WIFI_STA); // Disable AP mode
|
||||||
#ifdef USE_WIFI_RANGE_EXTENDER
|
#ifdef USE_WIFI_RANGE_EXTENDER
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue