Store WiFi settings in flash

Fixes: https://github.com/espressif/arduino-esp32/issues/173
This commit is contained in:
me-no-dev 2017-02-10 02:01:16 +02:00
parent 6a058275e7
commit 8df22cac80

View File

@ -59,7 +59,7 @@ extern void initWiFi()
tcpip_adapter_init(); tcpip_adapter_init();
esp_event_loop_init(&WiFiGenericClass::_eventCallback, NULL); esp_event_loop_init(&WiFiGenericClass::_eventCallback, NULL);
esp_wifi_init(&cfg); esp_wifi_init(&cfg);
esp_wifi_set_storage(WIFI_STORAGE_RAM); esp_wifi_set_storage(WIFI_STORAGE_FLASH);
_esp_wifi_initalized = true; _esp_wifi_initalized = true;
} }