Restore default data and init data before system restore.

This commit is contained in:
vowstar 2015-07-04 04:27:59 +08:00
parent b6e431ebed
commit 67d785ffec
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}