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

Co-authored-by: virgil <virgil.wang.cj@gmail.com>
This commit is contained in:
Tom Fifield 2025-01-25 00:30:18 +11:00 committed by GitHub
parent d1f7739bbe
commit 3298df953a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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