Skip to content

Commit baca11e

Browse files
committed
Fix invalid conditions with WiFi.SSID(pos) and WiFi.encryptionType(pos)
1 parent 15273ec commit baca11e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WiFi.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,8 @@ char* WiFiClass::SSID(uint8_t pos)
745745
}
746746

747747
_status = tmp;
748+
_resolve = 0;
749+
748750
return _scan_ssid;
749751
}
750752

@@ -804,6 +806,8 @@ uint8_t WiFiClass::encryptionType(uint8_t pos)
804806
}
805807

806808
_status = tmp;
809+
_resolve = 0;
810+
807811
return _scan_auth;
808812
}
809813

0 commit comments

Comments
 (0)