Fixed the issue that the wifi configuration saved to RAM did not take effect.

This commit is contained in:
virgil 2024-11-14 18:23:44 +08:00
parent e697d2ceae
commit b932d43974

View File

@ -214,7 +214,7 @@ bool initWifi()
#if !MESHTASTIC_EXCLUDE_WEBSERVER
createSSLCert(); // For WebServer
#endif
esp_wifi_set_storage(WIFI_STORAGE_RAM); // Disable flash storage for WiFi credentials
WiFi.persistent(false); // Disable flash storage for WiFi credentials
#endif
if (!*wifiPsw) // Treat empty password as no password
wifiPsw = NULL;