fix: Flash-Lock im SDK, Store-Lock, Flush vor Reboot
This commit is contained in:
@@ -9,7 +9,13 @@ void nl_app_lock(void);
|
||||
void nl_app_unlock(void);
|
||||
uint32_t nl_app_now_ms(void);
|
||||
nl_settings_t *nl_app_settings(void);
|
||||
/* Copies the settings under the app lock and writes them under the store lock; never call
|
||||
* while holding the app lock. */
|
||||
int nl_app_save_settings(void);
|
||||
/* Writes a pending light state immediately (no write when unchanged). */
|
||||
void nl_app_flush(void);
|
||||
/* Flushes pending state, then resets the chip. Does not return. */
|
||||
void nl_app_reboot(void);
|
||||
void nl_app_factory_reset(void);
|
||||
|
||||
/* Only sets a volatile flag; the app task (which owns the flash stores) checks it
|
||||
|
||||
@@ -99,7 +99,7 @@ static void exec(const nl_cmd_t *c)
|
||||
nl_app_request_factory_reset();
|
||||
return;
|
||||
case NL_CMD_REBOOT:
|
||||
tls_sys_reset();
|
||||
nl_app_reboot();
|
||||
return;
|
||||
case NL_CMD_WDTEST:
|
||||
printf("wdtest: holding app lock forever\r\n");
|
||||
|
||||
Reference in New Issue
Block a user