From 3a2193b0a2bd0923ab854310efaeba668662555d Mon Sep 17 00:00:00 2001 From: Nick Conway Date: Tue, 24 Sep 2024 13:44:21 -0400 Subject: [PATCH] fix turbo timer handler --- app/src/behaviors/behavior_turbo_key.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/behaviors/behavior_turbo_key.c b/app/src/behaviors/behavior_turbo_key.c index dff50e2db78..88fd1912a58 100644 --- a/app/src/behaviors/behavior_turbo_key.c +++ b/app/src/behaviors/behavior_turbo_key.c @@ -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; }