Skip to content

Commit

Permalink
feat(behaviors): Turbo Key - fix timing
Browse files Browse the repository at this point in the history
  • Loading branch information
nickconway committed Sep 24, 2024
1 parent 8f980ec commit c2f2f37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/behaviors/behavior_turbo_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ static int on_keymap_binding_pressed(struct zmk_behavior_binding *binding,
data->is_active = true;

LOG_DBG("%d started new turbo", event.position);
data->press_time = k_uptime_get();
k_work_init_delayable(&data->release_timer, behavior_turbo_timer_handler);
zmk_behavior_queue_add(event.position, cfg->binding, true, cfg->tap_ms);
zmk_behavior_queue_add(event.position, cfg->binding, false, 0);
Expand Down

0 comments on commit c2f2f37

Please sign in to comment.