diff options
| author | dbroqua <dbroqua@mousur.org> | 2016-09-19 13:26:18 +0200 |
|---|---|---|
| committer | dbroqua <dbroqua@mousur.org> | 2016-09-19 13:26:18 +0200 |
| commit | 21b6e4c1f3225fed55926a4e6be2888d17fe5fd2 (patch) | |
| tree | 63504b528703a65c4addda6658a701e405bba44c /tmk_core/common/command.c | |
| parent | 94af0194ddfe8f8a3069c926170d8995de5c1781 (diff) | |
| parent | c438a2a265b366c8e4594ce561feb896018983f0 (diff) | |
| download | qmk_firmware-21b6e4c1f3225fed55926a4e6be2888d17fe5fd2.tar.gz qmk_firmware-21b6e4c1f3225fed55926a4e6be2888d17fe5fd2.zip | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tmk_core/common/command.c')
| -rw-r--r-- | tmk_core/common/command.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 476fc6fe3..fc5aad5c1 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 | ||
| @@ -261,7 +261,10 @@ static void print_status(void) | |||
| 261 | #ifdef BOOTMAGIC_ENABLE | 261 | #ifdef BOOTMAGIC_ENABLE |
| 262 | static void print_eeconfig(void) | 262 | static void print_eeconfig(void) |
| 263 | { | 263 | { |
| 264 | #ifndef NO_PRINT | 264 | |
| 265 | // Print these variables if NO_PRINT or USER_PRINT are not defined. | ||
| 266 | #if !defined(NO_PRINT) && !defined(USER_PRINT) | ||
| 267 | |||
| 265 | print("default_layer: "); print_dec(eeconfig_read_default_layer()); print("\n"); | 268 | print("default_layer: "); print_dec(eeconfig_read_default_layer()); print("\n"); |
| 266 | 269 | ||
| 267 | debug_config_t dc; | 270 | debug_config_t dc; |
| @@ -435,8 +438,8 @@ static bool command_common(uint8_t code) | |||
| 435 | // NKRO toggle | 438 | // NKRO toggle |
| 436 | case MAGIC_KC(MAGIC_KEY_NKRO): | 439 | case MAGIC_KC(MAGIC_KEY_NKRO): |
| 437 | clear_keyboard(); // clear to prevent stuck keys | 440 | clear_keyboard(); // clear to prevent stuck keys |
| 438 | keyboard_nkro = !keyboard_nkro; | 441 | keymap_config.nkro = !keymap_config.nkro; |
| 439 | if (keyboard_nkro) { | 442 | if (keymap_config.nkro) { |
| 440 | print("NKRO: on\n"); | 443 | print("NKRO: on\n"); |
| 441 | } else { | 444 | } else { |
| 442 | print("NKRO: off\n"); | 445 | print("NKRO: off\n"); |
| @@ -571,7 +574,8 @@ static uint8_t mousekey_param = 0; | |||
| 571 | 574 | ||
| 572 | static void mousekey_param_print(void) | 575 | static void mousekey_param_print(void) |
| 573 | { | 576 | { |
| 574 | #ifndef NO_PRINT | 577 | // Print these variables if NO_PRINT or USER_PRINT are not defined. |
| 578 | #if !defined(NO_PRINT) && !defined(USER_PRINT) | ||
| 575 | print("\n\t- Values -\n"); | 579 | print("\n\t- Values -\n"); |
| 576 | print("1: delay(*10ms): "); pdec(mk_delay); print("\n"); | 580 | print("1: delay(*10ms): "); pdec(mk_delay); print("\n"); |
| 577 | print("2: interval(ms): "); pdec(mk_interval); print("\n"); | 581 | print("2: interval(ms): "); pdec(mk_interval); print("\n"); |
