diff options
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/common/command.c b/common/command.c index 372ca291e..cb98e1d5f 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -98,7 +98,6 @@ bool command_extra(uint8_t code) | |||
| 98 | ***********************************************************/ | 98 | ***********************************************************/ |
| 99 | static void command_common_help(void) | 99 | static void command_common_help(void) |
| 100 | { | 100 | { |
| 101 | print_enable = true; | ||
| 102 | print("\n\n----- Command Help -----\n"); | 101 | print("\n\n----- Command Help -----\n"); |
| 103 | print("c: enter console mode\n"); | 102 | print("c: enter console mode\n"); |
| 104 | print("d: toggle debug enable\n"); | 103 | print("d: toggle debug enable\n"); |
| @@ -137,7 +136,8 @@ static void print_eeprom_config(void) | |||
| 137 | eebyte = eeconfig_read_keyconf(); | 136 | eebyte = eeconfig_read_keyconf(); |
| 138 | print("keyconf: "); print_hex8(eebyte); print("\n"); | 137 | print("keyconf: "); print_hex8(eebyte); print("\n"); |
| 139 | 138 | ||
| 140 | keyconf kc = (keyconf){ .raw = eebyte }; | 139 | keyconf kc; |
| 140 | kc = (keyconf){ .raw = eebyte }; | ||
| 141 | print("keyconf.swap_control_capslock: "); print_hex8(kc.swap_control_capslock); print("\n"); | 141 | print("keyconf.swap_control_capslock: "); print_hex8(kc.swap_control_capslock); print("\n"); |
| 142 | print("keyconf.capslock_to_control: "); print_hex8(kc.capslock_to_control); print("\n"); | 142 | print("keyconf.capslock_to_control: "); print_hex8(kc.capslock_to_control); print("\n"); |
| 143 | print("keyconf.swap_lalt_lgui: "); print_hex8(kc.swap_lalt_lgui); print("\n"); | 143 | print("keyconf.swap_lalt_lgui: "); print_hex8(kc.swap_lalt_lgui); print("\n"); |
| @@ -173,7 +173,6 @@ static bool command_common(uint8_t code) | |||
| 173 | command_common_help(); | 173 | command_common_help(); |
| 174 | break; | 174 | break; |
| 175 | case KC_C: | 175 | case KC_C: |
| 176 | print_enable = true; | ||
| 177 | debug_matrix = false; | 176 | debug_matrix = false; |
| 178 | debug_keyboard = false; | 177 | debug_keyboard = false; |
| 179 | debug_mouse = false; | 178 | debug_mouse = false; |
| @@ -239,15 +238,6 @@ static bool command_common(uint8_t code) | |||
| 239 | case KC_T: // print timer | 238 | case KC_T: // print timer |
| 240 | print_val_hex32(timer_count); | 239 | print_val_hex32(timer_count); |
| 241 | break; | 240 | break; |
| 242 | case KC_P: // print toggle | ||
| 243 | if (print_enable) { | ||
| 244 | print("print disabled.\n"); | ||
| 245 | print_enable = false; | ||
| 246 | } else { | ||
| 247 | print_enable = true; | ||
| 248 | print("print enabled.\n"); | ||
| 249 | } | ||
| 250 | break; | ||
| 251 | case KC_S: | 241 | case KC_S: |
| 252 | print("\n\n----- Status -----\n"); | 242 | print("\n\n----- Status -----\n"); |
| 253 | print_val_hex8(host_keyboard_leds()); | 243 | print_val_hex8(host_keyboard_leds()); |
| @@ -320,7 +310,6 @@ static bool command_common(uint8_t code) | |||
| 320 | ***********************************************************/ | 310 | ***********************************************************/ |
| 321 | static void command_console_help(void) | 311 | static void command_console_help(void) |
| 322 | { | 312 | { |
| 323 | print_enable = true; | ||
| 324 | print("\n\n----- Console Help -----\n"); | 313 | print("\n\n----- Console Help -----\n"); |
| 325 | print("ESC/q: quit\n"); | 314 | print("ESC/q: quit\n"); |
| 326 | #ifdef MOUSEKEY_ENABLE | 315 | #ifdef MOUSEKEY_ENABLE |
