aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/command.c
diff options
context:
space:
mode:
authorIBNobody <IBNobody@users.noreply.github.com>2016-09-06 23:19:01 -0500
committerGitHub <noreply@github.com>2016-09-06 23:19:01 -0500
commit558f3ec1eb325caf706efc15e2fab26121aba442 (patch)
treea14b00c189492426beadc69c2094055f833b811f /tmk_core/common/command.c
parentf0388a5b1334ce0b8c8a359a0a8a1460e456b8c5 (diff)
downloadqmk_firmware-558f3ec1eb325caf706efc15e2fab26121aba442.tar.gz
qmk_firmware-558f3ec1eb325caf706efc15e2fab26121aba442.zip
Use keyboard config for nkro (#7)
* removing nkro references - wip * changed NKRO to be defined by keymap_config
Diffstat (limited to 'tmk_core/common/command.c')
-rw-r--r--tmk_core/common/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c
index 476fc6fe3..54d6117fd 100644
--- a/tmk_core/common/command.c
+++ b/tmk_core/common/command.c
@@ -238,7 +238,7 @@ static void print_status(void)
238 print_val_hex8(keyboard_protocol); 238 print_val_hex8(keyboard_protocol);
239 print_val_hex8(keyboard_idle); 239 print_val_hex8(keyboard_idle);
240#ifdef NKRO_ENABLE 240#ifdef NKRO_ENABLE
241 print_val_hex8(keyboard_nkro); 241 print_val_hex8(keymap_config.nkro);
242#endif 242#endif
243 print_val_hex32(timer_read32()); 243 print_val_hex32(timer_read32());
244 244
@@ -435,8 +435,8 @@ static bool command_common(uint8_t code)
435 // NKRO toggle 435 // NKRO toggle
436 case MAGIC_KC(MAGIC_KEY_NKRO): 436 case MAGIC_KC(MAGIC_KEY_NKRO):
437 clear_keyboard(); // clear to prevent stuck keys 437 clear_keyboard(); // clear to prevent stuck keys
438 keyboard_nkro = !keyboard_nkro; 438 keymap_config.nkro = !keymap_config.nkro;
439 if (keyboard_nkro) { 439 if (keymap_config.nkro) {
440 print("NKRO: on\n"); 440 print("NKRO: on\n");
441 } else { 441 } else {
442 print("NKRO: off\n"); 442 print("NKRO: off\n");