From e3030bfcc87b7f511b0ebe993fb1f1f06215982e Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Mon, 21 Apr 2025 23:17:12 -0600 Subject: [PATCH] fix(combos): Properly clean up all old candidates. (#2928) --- app/src/combo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/combo.c b/app/src/combo.c index f8a6fd3fb..7d869fa45 100644 --- a/app/src/combo.c +++ b/app/src/combo.c @@ -395,7 +395,7 @@ static bool release_combo_key(int32_t position, int64_t timestamp) { static int cleanup() { k_work_cancel_delayable(&timeout_task); - memset(candidates, 0, BYTES_FOR_COMBOS_MASK); + memset(candidates, 0, BYTES_FOR_COMBOS_MASK * sizeof(uint32_t)); if (fully_pressed_combo != INT16_MAX) { activate_combo(fully_pressed_combo); fully_pressed_combo = INT16_MAX;