mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +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()
|
// 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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user