Skip to content

Commit

Permalink
fix turbo timer handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nickconway committed Oct 27, 2024
1 parent af08121 commit 3a2193b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/behaviors/behavior_turbo_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ static void reset_timer(struct behavior_turbo_data *data, struct zmk_behavior_bi
}

static void behavior_turbo_timer_handler(struct k_work *item) {
struct k_work_delayable *d_work = k_work_delayable_from_work(item);
struct behavior_turbo_data *data =
CONTAINER_OF(item, struct behavior_turbo_data, release_timer);
CONTAINER_OF(d_work, struct behavior_turbo_data, release_timer);
if (!data->is_active) {
return;
}
Expand Down

0 comments on commit 3a2193b

Please sign in to comment.