This commit fixes issue https://github.com/espressif/arduino-esp32/issues/3522 where WiFi service fails to start after a WiFi.disconnect(true) or a WiFi.mode(WIFI_OFF).
This commit is contained in:
parent
494061af26
commit
80e9e42c3b
@ -574,7 +574,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m)
|
||||
*/
|
||||
wifi_mode_t WiFiGenericClass::getMode()
|
||||
{
|
||||
if(!lowLevelInitDone){
|
||||
if(!lowLevelInitDone || !_esp_wifi_started){
|
||||
return WIFI_MODE_NULL;
|
||||
}
|
||||
wifi_mode_t mode;
|
||||
|
Loading…
Reference in New Issue
Block a user