Use keyboard config for nkro (#7)
* removing nkro references - wip * changed NKRO to be defined by keymap_config
This commit is contained in:
parent
f0388a5b13
commit
558f3ec1eb
17 changed files with 131 additions and 101 deletions
|
@ -238,7 +238,7 @@ static void print_status(void)
|
|||
print_val_hex8(keyboard_protocol);
|
||||
print_val_hex8(keyboard_idle);
|
||||
#ifdef NKRO_ENABLE
|
||||
print_val_hex8(keyboard_nkro);
|
||||
print_val_hex8(keymap_config.nkro);
|
||||
#endif
|
||||
print_val_hex32(timer_read32());
|
||||
|
||||
|
@ -435,8 +435,8 @@ static bool command_common(uint8_t code)
|
|||
// NKRO toggle
|
||||
case MAGIC_KC(MAGIC_KEY_NKRO):
|
||||
clear_keyboard(); // clear to prevent stuck keys
|
||||
keyboard_nkro = !keyboard_nkro;
|
||||
if (keyboard_nkro) {
|
||||
keymap_config.nkro = !keymap_config.nkro;
|
||||
if (keymap_config.nkro) {
|
||||
print("NKRO: on\n");
|
||||
} else {
|
||||
print("NKRO: off\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue