Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit e0bdf41

Browse files
mouridiscrossan007
authored andcommitted
Fix issue espressif#3522 (WiFi does not restart after stopped) (espressif#4114)
This commit fixes issue espressif#3522 where WiFi service fails to start after a WiFi.disconnect(true) or a WiFi.mode(WIFI_OFF).
1 parent 2814f11 commit e0bdf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/WiFi/src/WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m)
574574
*/
575575
wifi_mode_t WiFiGenericClass::getMode()
576576
{
577-
if(!lowLevelInitDone){
577+
if(!lowLevelInitDone || !_esp_wifi_started){
578578
return WIFI_MODE_NULL;
579579
}
580580
wifi_mode_t mode;

0 commit comments

Comments
 (0)