From 8df22cac80b5048f29f7fba77d7d284c71cc8c91 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Fri, 10 Feb 2017 02:01:16 +0200 Subject: [PATCH] Store WiFi settings in flash Fixes: https://github.com/espressif/arduino-esp32/issues/173 --- libraries/WiFi/src/WiFiGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiGeneric.cpp b/libraries/WiFi/src/WiFiGeneric.cpp index d4d76e3d..5dd48224 100644 --- a/libraries/WiFi/src/WiFiGeneric.cpp +++ b/libraries/WiFi/src/WiFiGeneric.cpp @@ -59,7 +59,7 @@ extern void initWiFi() tcpip_adapter_init(); esp_event_loop_init(&WiFiGenericClass::_eventCallback, NULL); esp_wifi_init(&cfg); - esp_wifi_set_storage(WIFI_STORAGE_RAM); + esp_wifi_set_storage(WIFI_STORAGE_FLASH); _esp_wifi_initalized = true; }