fix(combos): Properly clean up all old candidates. (#2928)

This commit is contained in:
Pete Johanson 2025-04-21 23:17:12 -06:00 committed by GitHub
parent 00ff486931
commit e3030bfcc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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