aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/keymap.c')
-rw-r--r--app/src/keymap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/keymap.c b/app/src/keymap.c
index 1f55ad03d3..909fd20de8 100644
--- a/app/src/keymap.c
+++ b/app/src/keymap.c
@@ -270,8 +270,9 @@ int zmk_keymap_sensor_triggered(uint8_t sensor_number, const struct device *sens
continue;
}
- const uint32_t position = ZMK_VIRTUAL_KEY_POSITION_SENSOR(sensor_number);
- ret = behavior_sensor_keymap_binding_triggered(binding, sensor, position, timestamp);
+ struct zmk_behavior_binding_event event = {
+ .position = ZMK_VIRTUAL_KEY_POSITION_SENSOR(sensor_number), .timestamp = timestamp};
+ ret = behavior_sensor_keymap_binding_triggered(binding, sensor, event);
if (ret > 0) {
LOG_DBG("behavior processing to continue to next layer");