Skip to content

Commit

Permalink
Update ESP8266WiFiSTA.cpp (#8229)
Browse files Browse the repository at this point in the history
change return to `WL_WRONG_PASSWORD` if there is an issue with the password!
  • Loading branch information
hasenradball authored Sep 29, 2021
1 parent 64e87f1 commit 193043d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
int passphraseLen = passphrase == nullptr ? 0 : strlen(passphrase);
if(passphraseLen > 64) {
// fail passphrase too long!
return WL_CONNECT_FAILED;
return WL_WRONG_PASSWORD;
}

struct station_config conf;
Expand Down

0 comments on commit 193043d

Please sign in to comment.