Fixed various keymaps and the allocation of "key_combos" (#2526)
* Fixed plank keymaps so that they will compile for planck light * tv44:budi now compiles * s60_x:amnesia0287 now compiles * Fixed allocation of key_combos so that narze keymap for planck can compile correctly * Disabled rgb on ergodone and infinity * Enabled tap dance so it compiles * Added return statement so it compiles * If compiling on light disable extra functionality * Properly redefined variable so it compiles
This commit is contained in:
parent
ad1a868701
commit
6c74d734c2
10 changed files with 37 additions and 13 deletions
|
@ -183,6 +183,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
),
|
||||
};
|
||||
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
/*
|
||||
* Led Configuration
|
||||
*/
|
||||
|
@ -222,6 +223,7 @@ static inline void mod_layer_with_rgb(keyrecord_t *record, uint8_t layer) {
|
|||
bf_set_led(currentLayer);
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Custom keycodes
|
||||
|
@ -240,12 +242,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
SEND_STRING(" ");
|
||||
}
|
||||
return false; break;
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
case BF_NUMS:
|
||||
mod_layer_with_rgb(record, NUMS);
|
||||
return false; break;
|
||||
case BF_MOVE:
|
||||
mod_layer_with_rgb(record, MOVE);
|
||||
return false; break;
|
||||
#endif
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -255,7 +259,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
* Active Routines
|
||||
*/
|
||||
void matrix_init_user(void) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
bf_set_led(QWERTY);
|
||||
#endif
|
||||
};
|
||||
|
||||
// Runs constantly in the background, in a loop.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue