File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1360,7 +1360,7 @@ void jswrap_wifi_restore(void) {
1360
1360
jsDebug ("jswrap_wifi_restore" );
1361
1361
1362
1362
JsVar * name = jsvNewFromString (WIFI_CONFIG_STORAGE_NAME );
1363
- JsVar * o = jswrap_storage_readJSON (name );
1363
+ JsVar * o = jswrap_storage_readJSON (name , true );
1364
1364
if (!o ) { // no data
1365
1365
jsDebug ("jswrap_wifi_restore: No data - Starting default AP" );
1366
1366
esp_wifi_start ();
Original file line number Diff line number Diff line change @@ -902,7 +902,7 @@ void jswrap_wifi_save(JsVar *what) {
902
902
void jswrap_wifi_restore (void ) {
903
903
DBG ("Wifi.restore\n" );
904
904
JsVar * name = jsvNewFromString (WIFI_CONFIG_STORAGE_NAME );
905
- JsVar * o = jswrap_storage_readJSON (name );
905
+ JsVar * o = jswrap_storage_readJSON (name , true );
906
906
if (!o ) { // no data
907
907
jsvUnLock2 (name ,o );
908
908
return ;
You can’t perform that action at this time.
0 commit comments