diff --git a/app/src/split/bluetooth/central.c b/app/src/split/bluetooth/central.c index 9cad29d0..c370ea0f 100644 --- a/app/src/split/bluetooth/central.c +++ b/app/src/split/bluetooth/central.c @@ -17,6 +17,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL); #include +#include static int start_scan(void); @@ -236,9 +237,13 @@ static struct bt_conn_cb conn_callbacks = { .disconnected = disconnected, }; -int zmk_split_bt_central_init() +int zmk_split_bt_central_init(struct device *_arg) { bt_conn_cb_register(&conn_callbacks); return start_scan(); } + +SYS_INIT(zmk_split_bt_central_init, + APPLICATION, + CONFIG_APPLICATION_INIT_PRIORITY); \ No newline at end of file