File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
keyboards/keyboard_quantizer/kqb Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1010#define BMP_FORCE_SAFE_MODE false
1111#define DISABLE_MSC 1
1212
13+ #define COMBO_COUNT 32
1314
1415/* key matrix size */
1516#define MATRIX_ROWS_DEFAULT 24
Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ MCU_LDSCRIPT = nrf52840_kqb
66MCU = cortex-m4
77
88RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
9+ COMBO_ENABLE = yes
910
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ static char macro_string[1024];
3838bmp_ex_keycode_t bmp_ex_keycodes [BMP_EX_KC_LEN ];
3939uint32_t bmp_ex_keycode_num ;
4040
41+ #ifndef COMBO_COUNT
42+ # define COMBO_COUNT 0
43+ uint16_t COMBO_LEN ;
44+ #endif
45+
4146extern combo_t key_combos [COMBO_COUNT ];
4247extern uint16_t COMBO_LEN ;
4348uint16_t combo_members [COMBO_COUNT ][3 ];
@@ -566,6 +571,10 @@ int save_tapping_term_file() { return BMPAPI->app.save_file(QMK_RECORD); }
566571void convert_exkc_combo () {
567572 uint8_t combo_count = 0 ;
568573 for (int idx = 0 ; idx < bmp_ex_keycode_num ; idx ++ ) {
574+ if (combo_count >= COMBO_COUNT ) {
575+ break ;
576+ }
577+
569578 if (get_exkc_type (& bmp_ex_keycodes [idx ]) != CMB ) {
570579 continue ;
571580 }
@@ -576,10 +585,6 @@ void convert_exkc_combo() {
576585 key_combos [combo_count ].keycode = cmb_get_kc3 (& bmp_ex_keycodes [idx ]);
577586
578587 combo_count ++ ;
579-
580- if (combo_count >= COMBO_COUNT ) {
581- break ;
582- }
583588 }
584589
585590 COMBO_LEN = combo_count ;
You can’t perform that action at this time.
0 commit comments