forked from kofal.net/zmk
fix(split): Add define for local source.
* Add `ZMK_POSITION_STATE_CHANGE_SOURCE_LOCAL` and use it consinstently to fix bug w/ local `&reset`, `&bootloader`, etc.
This commit is contained in:
committed by
Pete Johanson
parent
4d55e60adb
commit
fa110488b0
@@ -51,7 +51,7 @@ void zmk_kscan_process_msgq(struct k_work *item) {
|
||||
LOG_DBG("Row: %d, col: %d, position: %d, pressed: %s", ev.row, ev.column, position,
|
||||
(pressed ? "true" : "false"));
|
||||
ZMK_EVENT_RAISE(new_zmk_position_state_changed(
|
||||
(struct zmk_position_state_changed){.source = UINT8_MAX,
|
||||
(struct zmk_position_state_changed){.source = ZMK_POSITION_STATE_CHANGE_SOURCE_LOCAL,
|
||||
.state = pressed,
|
||||
.position = position,
|
||||
.timestamp = k_uptime_get()}));
|
||||
|
||||
Reference in New Issue
Block a user