mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Update ESP8266WiFiSTA.cpp (#8229)
change return to `WL_WRONG_PASSWORD` if there is an issue with the password!
This commit is contained in:
parent
64e87f1149
commit
193043d19b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user