diff --git a/app/src/mouse/Kconfig b/app/src/mouse/Kconfig index ae6440cf4d2..a3ebff8087a 100644 --- a/app/src/mouse/Kconfig +++ b/app/src/mouse/Kconfig @@ -55,4 +55,12 @@ config ZMK_INPUT_SPLIT default y depends on DT_HAS_ZMK_INPUT_SPLIT_ENABLED && ZMK_SPLIT +if ZMK_INPUT_SPLIT + +config ZMK_INPUT_SPLIT_INIT_PRIORITY + int "Input Split initialization priority" + default INPUT_INIT_PRIORITY + +endif # ZMK_INPUT_SPLIT + endif diff --git a/app/src/mouse/input_split.c b/app/src/mouse/input_split.c index d79f4e76b24..55a84ea4624 100644 --- a/app/src/mouse/input_split.c +++ b/app/src/mouse/input_split.c @@ -40,9 +40,7 @@ int zmk_input_split_report_peripheral_event(uint8_t reg, uint8_t type, uint16_t #define ZIS_INST(n) \ DEVICE_DT_INST_DEFINE(n, NULL, NULL, NULL, NULL, POST_KERNEL, \ - CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, NULL); - -DT_INST_FOREACH_STATUS_OKAY(ZIS_INST) + CONFIG_ZMK_INPUT_SPLIT_INIT_PRIORITY, NULL); #else @@ -66,6 +64,6 @@ DT_INST_FOREACH_STATUS_OKAY(ZIS_INST) } \ INPUT_CALLBACK_DEFINE(DEVICE_DT_GET(DT_INST_PHANDLE(n, device)), split_input_handler_##n); -DT_INST_FOREACH_STATUS_OKAY(ZIS_INST) +#endif -#endif \ No newline at end of file +DT_INST_FOREACH_STATUS_OKAY(ZIS_INST) \ No newline at end of file