Skip to content

Commit 193043d

Browse files
authored
Update ESP8266WiFiSTA.cpp (#8229)
change return to `WL_WRONG_PASSWORD` if there is an issue with the password!
1 parent 64e87f1 commit 193043d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
136136
int passphraseLen = passphrase == nullptr ? 0 : strlen(passphrase);
137137
if(passphraseLen > 64) {
138138
// fail passphrase too long!
139-
return WL_CONNECT_FAILED;
139+
return WL_WRONG_PASSWORD;
140140
}
141141

142142
struct station_config conf;

0 commit comments

Comments
 (0)