8000 Use SSID_MAX_LENGTH in isVisible · arduino/ArduinoCore-mbed@361aee7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 361aee7

Browse files
committed
Use SSID_MAX_LENGTH in isVisible
1 parent cc4d69e commit 361aee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
bool arduino::WiFiClass::isVisible(const char* ssid) {
66
for (int i=0; i<10; i++) {
7-
if (strncmp(ap_list[i].get_ssid(), ssid, 32) == 0) {
7+
if (strncmp(ap_list[i].get_ssid(), ssid, SSID_MAX_LENGTH) == 0) {
88
connected_ap = i;
99
return true;
1010
}

0 commit comments

Comments
 (0)
0