Skip to content

Commit b972d50

Browse files
authored
Update WiFi.cpp to set connected_ap = SSID_MAX_COUNT if not scanning
1 parent cd9d7fc commit b972d50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ int arduino::WiFiClass::begin(const char* ssid, const char* passphrase, wl_enc_t
6767
return _currentNetworkStatus;
6868
}
6969
} else {
70+
connected_ap = SSID_MAX_COUNT;
7071
_security = enum2sec(security);
7172
}
7273

0 commit comments

Comments
 (0)