From 4c48b15c8f2ce5c17c5df775988fc1131db3dafb Mon Sep 17 00:00:00 2001 From: Smathev Date: Tue, 7 Oct 2025 10:29:52 +0200 Subject: [PATCH] Refactor combo definitions and update COMBO_COUNT handling --- users/smathev/combos.c | 1 - users/smathev/combos.h | 7 +++++-- users/smathev/config.h | 3 +-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/users/smathev/combos.c b/users/smathev/combos.c index f1850973..050ee077 100644 --- a/users/smathev/combos.c +++ b/users/smathev/combos.c @@ -40,4 +40,3 @@ combo_t key_combos[COMBO_COUNT] = { }; - diff --git a/users/smathev/combos.h b/users/smathev/combos.h index f66680ae..a27dd912 100644 --- a/users/smathev/combos.h +++ b/users/smathev/combos.h @@ -2,5 +2,8 @@ #include QMK_KEYBOARD_H -// Combo array declaration - COMBO_COUNT is automatically calculated by QMK -extern combo_t key_combos[]; +// Define the number of combos +#define COMBO_COUNT 17 + +// Combo array declaration +extern combo_t key_combos[COMBO_COUNT]; diff --git a/users/smathev/config.h b/users/smathev/config.h index 2bf1d37e..694c4cfd 100644 --- a/users/smathev/config.h +++ b/users/smathev/config.h @@ -76,8 +76,7 @@ #define SPLIT_WPM_ENABLE #define SPLIT_MODS_ENABLE #define SPLIT_LAYER_STATE_ENABLE -// Smathev - define combos -#define COMBO_COUNT 17 +// Smathev - define combos (COMBO_COUNT is auto-calculated by QMK) #define CASEMODES_ENABLE