Skip to content

Commit

Permalink
Zephyr 3.5 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Mar 5, 2024
1 parent aa9e22c commit 00f267d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ endif
menuconfig ZMK_STP_INDICATORS
bool "STP Specific indicators"
select LED_STRIP
select ZMK_LOW_PRIORITY_WORK_QUEUE
select ZMK_HID_INDICATORS

if ZMK_STP_INDICATORS

Expand Down
4 changes: 2 additions & 2 deletions app/src/behaviors/behavior_stp_indicators.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const struct behavior_driver_api behavior_stp_indicators_driver_api = {
.binding_released = on_keymap_binding_released,
};

DEVICE_DT_INST_DEFINE(0, behavior_stp_indicators_init, NULL, NULL, NULL, APPLICATION,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_stp_indicators_driver_api);
BEHAVIOR_DT_INST_DEFINE(0, behavior_stp_indicators_init, NULL, NULL, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_stp_indicators_driver_api);

#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */
4 changes: 2 additions & 2 deletions app/src/stp_indicators.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);

#if !DT_HAS_CHOSEN(zmk_indicators)

#error "A zmk,underglow chosen node must be declared"
#error "A zmk,indicators chosen node must be declared"

#endif

Expand Down Expand Up @@ -265,7 +265,7 @@ int zmk_stp_indicators_disable_batt() {
return 0;
}

static int zmk_stp_indicators_init(const struct device *_arg) {
static int zmk_stp_indicators_init(void) {

LOG_DBG("Initialising STP indicators");

Expand Down

0 comments on commit 00f267d

Please sign in to comment.