Fix build: include user code in keymap for combo introspection

The Keebart Vial fork's keymap_introspection.c does #include KEYMAP_C
to discover combos at compile time. Combos defined in a separately
compiled file (via SRC += timfee.c) aren't visible to introspection,
causing 'key_combos undeclared' errors.

Fix by #include-ing timfee.c from keymap.c so combos are visible to
the introspection system. Remove SRC += timfee.c since the file is
now included directly. Restore COMBO_COUNT required by this fork.

Verified: builds successfully locally producing .uf2 firmware.

https://claude.ai/code/session_01G7xpKdeQFVBvr4iCzxrcTU
This commit is contained in:
Claude 2026-03-31 21:20:38 +00:00
commit b6d7632097
No known key found for this signature in database
4 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#include "timfee.h" #include "timfee.h"
#include "timfee.c"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

View file

@ -11,5 +11,6 @@
#define RETRO_TAPPING_PER_KEY #define RETRO_TAPPING_PER_KEY
// ── Combos ── // ── Combos ──
#define COMBO_COUNT 8
#define COMBO_TERM 40 #define COMBO_TERM 40
#define COMBO_ONLY_FROM_LAYER 0 #define COMBO_ONLY_FROM_LAYER 0

View file

@ -1,2 +1 @@
SRC += timfee.c
COMBO_ENABLE = yes COMBO_ENABLE = yes

View file

@ -13,7 +13,7 @@ const uint16_t PROGMEM rbkt_combo[] = {KC_N, KC_M, COMBO_END};
const uint16_t PROGMEM pipe_combo[] = {Z_L2, KC_X, COMBO_END}; const uint16_t PROGMEM pipe_combo[] = {Z_L2, KC_X, COMBO_END};
const uint16_t PROGMEM bslh_combo[] = {SL_L1, KC_QUOT, COMBO_END}; const uint16_t PROGMEM bslh_combo[] = {SL_L1, KC_QUOT, COMBO_END};
combo_t key_combos[] = { combo_t key_combos[COMBO_COUNT] = {
COMBO(lparen_combo, KC_LPRN), COMBO(lparen_combo, KC_LPRN),
COMBO(rparen_combo, KC_RPRN), COMBO(rparen_combo, KC_RPRN),
COMBO(lbrace_combo, KC_LCBR), COMBO(lbrace_combo, KC_LCBR),