fix turbo timer handler

This commit is contained in:
Nick Conway 2024-09-24 13:44:21 -04:00
parent 2d5658059c
commit db47c28347
No known key found for this signature in database
GPG Key ID: AA850592E4C1D453
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}