aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/behaviors/behavior_toggle_layer.c
diff options
context:
space:
mode:
authorPeter Johanson <[email protected]>2023-11-09 00:17:44 -0800
committerPete Johanson <[email protected]>2024-02-09 14:32:46 -0800
commitd6de8a3acce86136c2d6fe944ab5afbc3e10be86 (patch)
tree1d74e9384899dd8cef872a83b00fc31b2b5f96ab /app/src/behaviors/behavior_toggle_layer.c
parentba1a6c08adfaf579292efd24b932033ddd66ce22 (diff)
downloadzmk-d6de8a3acce86136c2d6fe944ab5afbc3e10be86.tar.gz
zmk-d6de8a3acce86136c2d6fe944ab5afbc3e10be86.zip
refactor: Move to POST_KERNEL phase for behavior inits.
Diffstat (limited to 'app/src/behaviors/behavior_toggle_layer.c')
-rw-r--r--app/src/behaviors/behavior_toggle_layer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/behaviors/behavior_toggle_layer.c b/app/src/behaviors/behavior_toggle_layer.c
index 154cf9cdf4..817462df5a 100644
--- a/app/src/behaviors/behavior_toggle_layer.c
+++ b/app/src/behaviors/behavior_toggle_layer.c
@@ -44,6 +44,6 @@ static const struct behavior_tog_config behavior_tog_config = {};
static struct behavior_tog_data behavior_tog_data;
BEHAVIOR_DT_INST_DEFINE(0, behavior_tog_init, NULL, &behavior_tog_data, &behavior_tog_config,
- APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_tog_driver_api);
+ POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_tog_driver_api);
#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */