Browse Source

Restore default data and init data before system restore.

vowstar 9 years ago
parent
commit
67d785ffec
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/modules/node.c

+ 2 - 0
app/modules/node.c

@@ -424,6 +424,8 @@ static int node_bootreason (lua_State *L)
 // Lua: restore()
 static int node_restore (lua_State *L)
 {
+  flash_init_data_default();
+  flash_init_data_blank();
   system_restore();
   return 0;
 }