diff options
author | Joel Challis <git@zvecr.com> | 2021-02-06 16:56:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 16:56:13 +0000 |
commit | f5a38b95c12d100ab74acfd603502c66e0d0911d (patch) | |
tree | d752c81b42539959c3b69ff70d7c00c0cb666120 /tmk_core/common | |
parent | c50ecb4bb053a98dc8541f29e3a98f149340980a (diff) | |
download | qmk_firmware-f5a38b95c12d100ab74acfd603502c66e0d0911d.tar.gz qmk_firmware-f5a38b95c12d100ab74acfd603502c66e0d0911d.zip |
Remove legacy print backward compatiblitly (#11805)
* Remove legacy print backward compatiblitly
* Remove legacy print backward compatiblitly - core
* revert comment changes
Diffstat (limited to 'tmk_core/common')
-rw-r--r-- | tmk_core/common/command.c | 12 | ||||
-rw-r--r-- | tmk_core/common/mousekey.c | 2 | ||||
-rw-r--r-- | tmk_core/common/print.h | 10 |
3 files changed, 7 insertions, 17 deletions
diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 59aa4e4d3..34c4b36b1 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c | |||
@@ -550,22 +550,22 @@ static void mousekey_param_print(void) { | |||
550 | # if !defined(NO_PRINT) && !defined(USER_PRINT) | 550 | # if !defined(NO_PRINT) && !defined(USER_PRINT) |
551 | print("\n\t- Values -\n"); | 551 | print("\n\t- Values -\n"); |
552 | print("1: delay(*10ms): "); | 552 | print("1: delay(*10ms): "); |
553 | pdec(mk_delay); | 553 | print_dec(mk_delay); |
554 | print("\n"); | 554 | print("\n"); |
555 | print("2: interval(ms): "); | 555 | print("2: interval(ms): "); |
556 | pdec(mk_interval); | 556 | print_dec(mk_interval); |
557 | print("\n"); | 557 | print("\n"); |
558 | print("3: max_speed: "); | 558 | print("3: max_speed: "); |
559 | pdec(mk_max_speed); | 559 | print_dec(mk_max_speed); |
560 | print("\n"); | 560 | print("\n"); |
561 | print("4: time_to_max: "); | 561 | print("4: time_to_max: "); |
562 | pdec(mk_time_to_max); | 562 | print_dec(mk_time_to_max); |
563 | print("\n"); | 563 | print("\n"); |
564 | print("5: wheel_max_speed: "); | 564 | print("5: wheel_max_speed: "); |
565 | pdec(mk_wheel_max_speed); | 565 | print_dec(mk_wheel_max_speed); |
566 | print("\n"); | 566 | print("\n"); |
567 | print("6: wheel_time_to_max: "); | 567 | print("6: wheel_time_to_max: "); |
568 | pdec(mk_wheel_time_to_max); | 568 | print_dec(mk_wheel_time_to_max); |
569 | print("\n"); | 569 | print("\n"); |
570 | # endif /* !NO_PRINT */ | 570 | # endif /* !NO_PRINT */ |
571 | } | 571 | } |
diff --git a/tmk_core/common/mousekey.c b/tmk_core/common/mousekey.c index d8cf63f77..63e74baa9 100644 --- a/tmk_core/common/mousekey.c +++ b/tmk_core/common/mousekey.c | |||
@@ -471,7 +471,7 @@ void mousekey_clear(void) { | |||
471 | static void mousekey_debug(void) { | 471 | static void mousekey_debug(void) { |
472 | if (!debug_mouse) return; | 472 | if (!debug_mouse) return; |
473 | print("mousekey [btn|x y v h](rep/acl): ["); | 473 | print("mousekey [btn|x y v h](rep/acl): ["); |
474 | phex(mouse_report.buttons); | 474 | print_hex8(mouse_report.buttons); |
475 | print("|"); | 475 | print("|"); |
476 | print_decs(mouse_report.x); | 476 | print_decs(mouse_report.x); |
477 | print(" "); | 477 | print(" "); |
diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h index 647a5aa05..35fcad0f4 100644 --- a/tmk_core/common/print.h +++ b/tmk_core/common/print.h | |||
@@ -258,13 +258,3 @@ extern "C" | |||
258 | # define print_val_bin_reverse32(v) | 258 | # define print_val_bin_reverse32(v) |
259 | 259 | ||
260 | #endif /* NO_PRINT */ | 260 | #endif /* NO_PRINT */ |
261 | |||
262 | /* Backward compatiblitly for old name */ | ||
263 | #define pdec(data) print_dec(data) | ||
264 | #define pdec16(data) print_dec(data) | ||
265 | #define phex(data) print_hex8(data) | ||
266 | #define phex16(data) print_hex16(data) | ||
267 | #define pbin(data) print_bin8(data) | ||
268 | #define pbin16(data) print_bin16(data) | ||
269 | #define pbin_reverse(data) print_bin_reverse8(data) | ||
270 | #define pbin_reverse16(data) print_bin_reverse16(data) | ||