Skip to content

Commit 2aaf857

Browse files
committed
Add fix from issue espressif#3522
espressif#4114
1 parent 0002b5f commit 2aaf857

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
@@ -504,7 +504,7 @@ bool WiFiGenericClass::mode(wifi_mode_t m)
504504
*/
505505
wifi_mode_t WiFiGenericClass::getMode()
506506
{
507-
if(!_esp_wifi_started){
507+
if(!lowLevelInitDone || !_esp_wifi_started){
508508
return WIFI_MODE_NULL;
509509
}
510510
wifi_mode_t mode;

0 commit comments

Comments
 (0)