Commit 67d785ff authored by vowstar's avatar vowstar
Browse files

Restore default data and init data before system restore.

parent b6e431eb
...@@ -424,6 +424,8 @@ static int node_bootreason (lua_State *L) ...@@ -424,6 +424,8 @@ static int node_bootreason (lua_State *L)
// Lua: restore() // Lua: restore()
static int node_restore (lua_State *L) static int node_restore (lua_State *L)
{ {
flash_init_data_default();
flash_init_data_blank();
system_restore(); system_restore();
return 0; return 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment