forked from kofal.net/zmk
fix: Add settings reset on start init priority.
* Add a dedicated settings reset on start init priority and default it to lower priority (high number) than default FLASH_INIT_PRIORITY to be sure flash is initialized before we open the area.
This commit is contained in:
committed by
Pete Johanson
parent
1f7cd7a107
commit
3a3eed2960
@@ -10,4 +10,4 @@
|
||||
|
||||
// Reset after the kernel is initialized but before any application code to
|
||||
// ensure settings are cleared before anything tries to use them.
|
||||
SYS_INIT(zmk_settings_erase, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(zmk_settings_erase, POST_KERNEL, CONFIG_ZMK_SETTINGS_RESET_ON_START_INIT_PRIORITY);
|
||||
|
||||
Reference in New Issue
Block a user