Skip to content

Commit ab16b2f

Browse files
committed
Fix typo
1 parent 40da463 commit ab16b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFi.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ void ESP8266WiFiClass::softAP(const char* ssid, const char* passphrase, int chan
328328
_mode(WIFI_AP);
329329
}
330330

331-
if(!ssid || strlen(ssid) || strlen(ssid) > 31) {
331+
if(!ssid || *ssid == 0 || strlen(ssid) > 31) {
332332
// fail SSID too long or missing!
333333
return;
334334
}

0 commit comments

Comments
 (0)