aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorJoel Spadin <[email protected]>2024-02-24 12:14:37 -0600
committerPete Johanson <[email protected]>2024-03-18 09:48:19 -0700
commita77288f5274b8cd64aed5dc03bb6c03ec205240f (patch)
treec36a568d2cac6654d0e5f6bf0ad509032725f604 /app
parent14b06a36bf5acecb52db57daf29046b334bf18df (diff)
downloadzmk-a77288f5274b8cd64aed5dc03bb6c03ec205240f.tar.gz
zmk-a77288f5274b8cd64aed5dc03bb6c03ec205240f.zip
fix: Update settings reset for Zephyr 3.5
Diffstat (limited to 'app')
-rw-r--r--app/src/settings/reset_settings_on_start.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/src/settings/reset_settings_on_start.c b/app/src/settings/reset_settings_on_start.c
index 3b3890f469..47f5e8f225 100644
--- a/app/src/settings/reset_settings_on_start.c
+++ b/app/src/settings/reset_settings_on_start.c
@@ -4,16 +4,10 @@
* SPDX-License-Identifier: MIT
*/
-#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zmk/settings.h>
-static int reset_settings_init(const struct device *dev) {
- ARG_UNUSED(dev);
- return zmk_settings_erase();
-}
-
// Reset after the kernel is initialized but before any application code to
// ensure settings are cleared before anything tries to use them.
-SYS_INIT(reset_settings_init, POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY);
+SYS_INIT(zmk_settings_erase, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);