diff options
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/common/command.c b/common/command.c index 85cc05733..a06e6a00d 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -164,9 +164,6 @@ static bool command_common(uint8_t code) | |||
| 164 | debug_enable = false; | 164 | debug_enable = false; |
| 165 | } else { | 165 | } else { |
| 166 | print("\nDEBUG: enabled.\n"); | 166 | print("\nDEBUG: enabled.\n"); |
| 167 | debug_matrix = true; | ||
| 168 | debug_keyboard = true; | ||
| 169 | debug_mouse = true; | ||
| 170 | debug_enable = true; | 167 | debug_enable = true; |
| 171 | } | 168 | } |
| 172 | break; | 169 | break; |
| @@ -205,7 +202,7 @@ static bool command_common(uint8_t code) | |||
| 205 | print("VERSION: " STR(DEVICE_VER) "\n"); | 202 | print("VERSION: " STR(DEVICE_VER) "\n"); |
| 206 | break; | 203 | break; |
| 207 | case KC_T: // print timer | 204 | case KC_T: // print timer |
| 208 | pv_hex32(timer_count); | 205 | print_val_hex32(timer_count); |
| 209 | break; | 206 | break; |
| 210 | case KC_P: // print toggle | 207 | case KC_P: // print toggle |
| 211 | if (print_enable) { | 208 | if (print_enable) { |
| @@ -218,20 +215,20 @@ static bool command_common(uint8_t code) | |||
| 218 | break; | 215 | break; |
| 219 | case KC_S: | 216 | case KC_S: |
| 220 | print("\n\n----- Status -----\n"); | 217 | print("\n\n----- Status -----\n"); |
| 221 | pv_hex8(host_keyboard_leds()); | 218 | print_val_hex8(host_keyboard_leds()); |
| 222 | #ifdef HOST_PJRC | 219 | #ifdef HOST_PJRC |
| 223 | pv_hex8(UDCON); | 220 | print_val_hex8(UDCON); |
| 224 | pv_hex8(UDIEN); | 221 | print_val_hex8(UDIEN); |
| 225 | pv_hex8(UDINT); | 222 | print_val_hex8(UDINT); |
| 226 | pv_hex8(usb_keyboard_leds); | 223 | print_val_hex8(usb_keyboard_leds); |
| 227 | pv_hex8(usb_keyboard_protocol); | 224 | print_val_hex8(usb_keyboard_protocol); |
| 228 | pv_hex8(usb_keyboard_idle_config); | 225 | print_val_hex8(usb_keyboard_idle_config); |
| 229 | pv_hex8(usb_keyboard_idle_count); | 226 | print_val_hex8(usb_keyboard_idle_count); |
| 230 | #endif | 227 | #endif |
| 231 | 228 | ||
| 232 | #ifdef HOST_VUSB | 229 | #ifdef HOST_VUSB |
| 233 | # if USB_COUNT_SOF | 230 | # if USB_COUNT_SOF |
| 234 | pv_hex8(usbSofCount); | 231 | print_val_hex8(usbSofCount); |
| 235 | # endif | 232 | # endif |
| 236 | #endif | 233 | #endif |
| 237 | break; | 234 | break; |
| @@ -350,7 +347,7 @@ static void mousekey_param_print(void) | |||
| 350 | print("6: mk_wheel_time_to_max: "); pdec(mk_wheel_time_to_max); print("\n"); | 347 | print("6: mk_wheel_time_to_max: "); pdec(mk_wheel_time_to_max); print("\n"); |
| 351 | } | 348 | } |
| 352 | 349 | ||
| 353 | #define PRINT_SET_VAL(v) print(#v " = "); print_dec8(v); print("\n"); | 350 | #define PRINT_SET_VAL(v) print(#v " = "); print_dec(v); print("\n"); |
| 354 | static void mousekey_param_inc(uint8_t param, uint8_t inc) | 351 | static void mousekey_param_inc(uint8_t param, uint8_t inc) |
| 355 | { | 352 | { |
| 356 | switch (param) { | 353 | switch (param) { |
| @@ -552,11 +549,11 @@ static uint8_t numkey2num(uint8_t code) | |||
| 552 | 549 | ||
| 553 | static void switch_layer(uint8_t layer) | 550 | static void switch_layer(uint8_t layer) |
| 554 | { | 551 | { |
| 555 | pv_hex8(current_layer); | 552 | print_val_hex8(current_layer); |
| 556 | pv_hex8(default_layer); | 553 | print_val_hex8(default_layer); |
| 557 | current_layer = layer; | 554 | current_layer = layer; |
| 558 | default_layer = layer; | 555 | default_layer = layer; |
| 559 | print("switch to "); pv_hex8(layer); | 556 | print("switch to "); print_val_hex8(layer); |
| 560 | } | 557 | } |
| 561 | 558 | ||
| 562 | static void clear_keyboard(void) | 559 | static void clear_keyboard(void) |
