mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
Restore default data and init data before system restore.
This commit is contained in:
parent
b6e431ebed
commit
67d785ffec
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user