1
0
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:
Hasenradball 2021-09-29 09:35:32 +02:00 committed by GitHub
parent 64e87f1149
commit 193043d19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
int passphraseLen = passphrase == nullptr ? 0 : strlen(passphrase); int passphraseLen = passphrase == nullptr ? 0 : strlen(passphrase);
if(passphraseLen > 64) { if(passphraseLen > 64) {
// fail passphrase too long! // fail passphrase too long!
return WL_CONNECT_FAILED; return WL_WRONG_PASSWORD;
} }
struct station_config conf; struct station_config conf;