fix: Flash-Lock im SDK, Store-Lock, Flush vor Reboot

This commit is contained in:
Michael Sauer
2026-09-11 22:10:28 +02:00
parent dce9ad2946
commit 0648b3a252
5 changed files with 82 additions and 7 deletions
+6
View File
@@ -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