mirror of https://github.com/zmkfirmware/zmk.git
fix(behaviors): Proper comma separated device list (#2850)
Properly generate the comma separated list of devs in caps word/ key repeat.
This commit is contained in:
parent
fadafc7759
commit
f20e6ea759
|
|
@ -84,7 +84,8 @@ static int caps_word_keycode_state_changed_listener(const zmk_event_t *eh);
|
|||
ZMK_LISTENER(behavior_caps_word, caps_word_keycode_state_changed_listener);
|
||||
ZMK_SUBSCRIPTION(behavior_caps_word, zmk_keycode_state_changed);
|
||||
|
||||
static const struct device *devs[] = {DT_INST_FOREACH_STATUS_OKAY(DEVICE_DT_INST_GET)};
|
||||
#define GET_DEV(inst) DEVICE_DT_INST_GET(inst),
|
||||
static const struct device *devs[] = {DT_INST_FOREACH_STATUS_OKAY(GET_DEV)};
|
||||
|
||||
static bool caps_word_is_caps_includelist(const struct behavior_caps_word_config *config,
|
||||
uint16_t usage_page, uint8_t usage_id,
|
||||
|
|
|
|||
|
|
@ -77,7 +77,8 @@ static int key_repeat_keycode_state_changed_listener(const zmk_event_t *eh);
|
|||
ZMK_LISTENER(behavior_key_repeat, key_repeat_keycode_state_changed_listener);
|
||||
ZMK_SUBSCRIPTION(behavior_key_repeat, zmk_keycode_state_changed);
|
||||
|
||||
static const struct device *devs[] = {DT_INST_FOREACH_STATUS_OKAY(DEVICE_DT_INST_GET)};
|
||||
#define GET_DEV(inst) DEVICE_DT_INST_GET(inst),
|
||||
static const struct device *devs[] = {DT_INST_FOREACH_STATUS_OKAY(GET_DEV)};
|
||||
|
||||
static int key_repeat_keycode_state_changed_listener(const zmk_event_t *eh) {
|
||||
struct zmk_keycode_state_changed *ev = as_zmk_keycode_state_changed(eh);
|
||||
|
|
|
|||
Loading…
Reference in New Issue