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

Commit c29e0bc

Browse files
authored
Merge pull request #1 from crossan007/fix-wifi-from-upstream
Fix issue espressif#3522 (WiFi does not restart after stopped) (espressif#4114)
2 parents 2814f11 + e0bdf41 commit c29e0bc

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)