Update hasp_wifi.cpp

Allow the WiFi key to be the maximum 64 characters supported by the standard.
This commit is contained in:
nagyrobi 2021-03-04 16:07:21 +01:00 committed by GitHub
parent deac936e82
commit 4ca50771e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,9 +44,9 @@ char wifiSsid[32] = WIFI_SSID;
char wifiSsid[32] = "";
#endif
#ifdef WIFI_PASSW
char wifiPassword[32] = WIFI_PASSW;
char wifiPassword[64] = WIFI_PASSW;
#else
char wifiPassword[32] = "";
char wifiPassword[64] = "";
#endif
uint8_t wifiReconnectCounter = 0;
@ -554,4 +554,4 @@ bool wifiSetConfig(const JsonObject & settings)
}
#endif // HASP_USE_CONFIG
#endif
#endif