From f5a38b95c12d100ab74acfd603502c66e0d0911d Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sat, 6 Feb 2021 16:56:13 +0000 Subject: [PATCH] Remove legacy print backward compatiblitly (#11805) * Remove legacy print backward compatiblitly * Remove legacy print backward compatiblitly - core * revert comment changes --- keyboards/40percentclub/ut47/matrix.c | 4 ++-- keyboards/ai03/orbit/matrix.c | 2 +- keyboards/amj96/matrix.c | 4 ++-- keyboards/angel64/alpha/matrix.c | 2 +- keyboards/angel64/rev1/matrix.c | 2 +- keyboards/bpiphany/pegasushoof/2013/matrix.c | 4 ++-- keyboards/bpiphany/pegasushoof/2015/matrix.c | 4 ++-- keyboards/centromere/matrix.c | 2 +- keyboards/chimera_ergo/matrix.c | 2 +- keyboards/chimera_ls/matrix.c | 2 +- keyboards/chimera_ortho/matrix.c | 2 +- keyboards/chimera_ortho_plus/matrix.c | 2 +- keyboards/comet46/matrix.c | 2 +- keyboards/converter/adb_usb/matrix.c | 6 +++--- keyboards/converter/hp_46010a/matrix.c | 2 +- keyboards/converter/ibm_5291/matrix.c | 2 +- keyboards/converter/m0110_usb/matrix.c | 2 +- keyboards/converter/palm_usb/matrix.c | 4 ++-- keyboards/converter/sun_usb/matrix.c | 4 ++-- keyboards/converter/xt_usb/matrix.c | 2 +- keyboards/crkbd/rev1/legacy/matrix.c | 4 ++-- keyboards/dc01/arrow/matrix.c | 2 +- keyboards/dc01/left/matrix.c | 2 +- keyboards/dc01/numpad/matrix.c | 2 +- keyboards/dc01/right/matrix.c | 2 +- keyboards/dichotomy/matrix.c | 2 +- keyboards/dm9records/ergoinu/matrix.c | 4 ++-- keyboards/ergodone/matrix.c | 4 ++-- keyboards/ergotaco/matrix.c | 4 ++-- keyboards/georgi/matrix.c | 4 ++-- keyboards/gergo/matrix.c | 4 ++-- keyboards/handwired/dactyl/matrix.c | 4 ++-- keyboards/handwired/datahand/matrix.c | 2 +- keyboards/handwired/frenchdev/matrix.c | 4 ++-- keyboards/handwired/not_so_minidox/matrix.c | 4 ++-- keyboards/handwired/owlet60/matrix.c | 2 +- keyboards/handwired/promethium/matrix.c | 2 +- keyboards/handwired/pterodactyl/matrix.c | 4 ++-- keyboards/helix/pico/matrix.c | 4 ++-- keyboards/helix/rev1/matrix.c | 4 ++-- keyboards/helix/rev2/matrix.c | 4 ++-- keyboards/hid_liber/matrix.c | 4 ++-- keyboards/honeycomb/matrix.c | 2 +- keyboards/hotdox/matrix.c | 4 ++-- keyboards/keyboardio/model01/matrix.c | 4 ++-- keyboards/kinesis/alvicstep/matrix.c | 4 ++-- keyboards/kmac/matrix.c | 2 +- keyboards/kmini/matrix.c | 2 +- keyboards/lily58/rev1/matrix.c | 4 ++-- keyboards/meira/matrix.c | 4 ++-- keyboards/mitosis/matrix.c | 2 +- keyboards/moon/matrix.c | 2 +- keyboards/mschwingen/modelm/matrix.c | 2 +- keyboards/nek_type_a/matrix.c | 2 +- keyboards/redox_w/matrix.c | 2 +- keyboards/redscarf_iiplus/verb/matrix.c | 2 +- keyboards/redscarf_iiplus/verc/matrix.c | 2 +- keyboards/redscarf_iiplus/verd/matrix.c | 2 +- keyboards/sirius/uni660/rev1/matrix.c | 2 +- keyboards/sirius/uni660/rev2/matrix.c | 2 +- keyboards/sx60/matrix.c | 2 +- keyboards/telophase/matrix.c | 2 +- keyboards/thedogkeyboard/matrix.c | 2 +- keyboards/ymdk/sp64/matrix.c | 4 ++-- keyboards/yosino58/rev1/matrix.c | 4 ++-- quantum/matrix_common.c | 2 +- tmk_core/common/command.c | 12 ++++++------ tmk_core/common/mousekey.c | 2 +- tmk_core/common/print.h | 10 ---------- tmk_core/protocol/m0110.c | 8 ++++---- tmk_core/protocol/ps2_mouse.c | 2 +- 71 files changed, 107 insertions(+), 117 deletions(-) diff --git a/keyboards/40percentclub/ut47/matrix.c b/keyboards/40percentclub/ut47/matrix.c index 921bc9ed5e7c5e7ffd79299f1eb67a0a5e2a3bc7..e47c7f8e136212158028d71cb6a866e0b36774e8 100644 --- a/keyboards/40percentclub/ut47/matrix.c +++ b/keyboards/40percentclub/ut47/matrix.c @@ -126,8 +126,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/ai03/orbit/matrix.c b/keyboards/ai03/orbit/matrix.c index a1509666cd5be255f016beb1cf6e41804893b34b..b8e3296686dece67756e30c95320aa62d09bfb5e 100644 --- a/keyboards/ai03/orbit/matrix.c +++ b/keyboards/ai03/orbit/matrix.c @@ -96,7 +96,7 @@ void matrix_print(void) { print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); diff --git a/keyboards/amj96/matrix.c b/keyboards/amj96/matrix.c index 5d00ea98f5a8a3c974b15253e786afefbfae13b0..8e7bbaa79128b1a77ee6e4a5b197cf68bddbbdd0 100644 --- a/keyboards/amj96/matrix.c +++ b/keyboards/amj96/matrix.c @@ -130,8 +130,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/angel64/alpha/matrix.c b/keyboards/angel64/alpha/matrix.c index e06fc15dc4fb03be6583b2ef6b62528d0bf8cc89..474fbec030c9f17e32a58da6b3c29413ba026996 100644 --- a/keyboards/angel64/alpha/matrix.c +++ b/keyboards/angel64/alpha/matrix.c @@ -120,7 +120,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/angel64/rev1/matrix.c b/keyboards/angel64/rev1/matrix.c index e06fc15dc4fb03be6583b2ef6b62528d0bf8cc89..474fbec030c9f17e32a58da6b3c29413ba026996 100644 --- a/keyboards/angel64/rev1/matrix.c +++ b/keyboards/angel64/rev1/matrix.c @@ -120,7 +120,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/bpiphany/pegasushoof/2013/matrix.c b/keyboards/bpiphany/pegasushoof/2013/matrix.c index a670d538238c8cbef2dd0b35837eda2c16040259..037f323c009e6828ec7a7d47c7ba12b11dca4409 100644 --- a/keyboards/bpiphany/pegasushoof/2013/matrix.c +++ b/keyboards/bpiphany/pegasushoof/2013/matrix.c @@ -133,8 +133,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/bpiphany/pegasushoof/2015/matrix.c b/keyboards/bpiphany/pegasushoof/2015/matrix.c index db03993544535ff57135ffbc38ce77e406f25499..42c5da3bc53804e3f6727822b65cbf68c768372f 100644 --- a/keyboards/bpiphany/pegasushoof/2015/matrix.c +++ b/keyboards/bpiphany/pegasushoof/2015/matrix.c @@ -93,8 +93,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < matrix_rows(); row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/centromere/matrix.c b/keyboards/centromere/matrix.c index 5ca083b435030db90c4bd6758d0e448f1dc799e0..7256cd5cb5a79808fe5ea9790b9f96746c290980 100644 --- a/keyboards/centromere/matrix.c +++ b/keyboards/centromere/matrix.c @@ -137,7 +137,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/chimera_ergo/matrix.c b/keyboards/chimera_ergo/matrix.c index 112b9a40d17fad1de6698f0789bdbde528330ab9..577176c466c622866faaf4654a46041cb32e48ce 100644 --- a/keyboards/chimera_ergo/matrix.c +++ b/keyboards/chimera_ergo/matrix.c @@ -148,7 +148,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/chimera_ls/matrix.c b/keyboards/chimera_ls/matrix.c index 7208d971e1265c28babff2a0dbf2d1cadf349642..9edd91818ff52149cca93e10bb1f5ea228d85a6d 100644 --- a/keyboards/chimera_ls/matrix.c +++ b/keyboards/chimera_ls/matrix.c @@ -152,7 +152,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/chimera_ortho/matrix.c b/keyboards/chimera_ortho/matrix.c index eb2f18473ef314672a93810b7dffd83c5f27462a..34930af7e2058d32e9029b7e05f7b5dfa49067ca 100644 --- a/keyboards/chimera_ortho/matrix.c +++ b/keyboards/chimera_ortho/matrix.c @@ -138,7 +138,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/chimera_ortho_plus/matrix.c b/keyboards/chimera_ortho_plus/matrix.c index 2bdc97991cf75e0508c35665be9ba68b58baf405..818e05ac9872702824faf16a7025c63ba0b5f2d1 100644 --- a/keyboards/chimera_ortho_plus/matrix.c +++ b/keyboards/chimera_ortho_plus/matrix.c @@ -138,7 +138,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/comet46/matrix.c b/keyboards/comet46/matrix.c index eb2f18473ef314672a93810b7dffd83c5f27462a..34930af7e2058d32e9029b7e05f7b5dfa49067ca 100644 --- a/keyboards/comet46/matrix.c +++ b/keyboards/comet46/matrix.c @@ -138,7 +138,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/converter/adb_usb/matrix.c b/keyboards/converter/adb_usb/matrix.c index 4a70eb5021371ece2cf4d0a4f1b708543fde3384..9e5399de5d6b9f510a003e98d96617683e175060 100644 --- a/keyboards/converter/adb_usb/matrix.c +++ b/keyboards/converter/adb_usb/matrix.c @@ -129,8 +129,8 @@ void adb_mouse_task(void) if (debug_mouse) { print("adb_host_mouse_recv: "); print_bin16(codes); print("\n"); print("adb_mouse raw: ["); - phex(mouseacc); print(" "); - phex(mouse_report.buttons); print("|"); + print_hex8(mouseacc); print(" "); + print_hex8(mouse_report.buttons); print("|"); print_decs(mouse_report.x); print(" "); print_decs(mouse_report.y); print("]\n"); } @@ -173,7 +173,7 @@ uint8_t matrix_scan(void) key1 = codes&0xFF; if (debug_matrix && codes) { - print("adb_host_kbd_recv: "); phex16(codes); print("\n"); + print("adb_host_kbd_recv: "); print_hex16(codes); print("\n"); } if (codes == 0) { // no keys diff --git a/keyboards/converter/hp_46010a/matrix.c b/keyboards/converter/hp_46010a/matrix.c index 72a098746c6ad62da97f209cf4c3e2e228324b3d..03fcb2424f07f783637f786780a50c3779b8f945 100644 --- a/keyboards/converter/hp_46010a/matrix.c +++ b/keyboards/converter/hp_46010a/matrix.c @@ -220,7 +220,7 @@ void matrix_print(void) print("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_bin_reverse8(matrix_get_row(row)); print("\n"); } diff --git a/keyboards/converter/ibm_5291/matrix.c b/keyboards/converter/ibm_5291/matrix.c index 8b2dba7ab6f95fcc3a4b23ac1141c0a559c1bc5b..3946d02e518d379899ca2e9ba997940e584defee 100644 --- a/keyboards/converter/ibm_5291/matrix.c +++ b/keyboards/converter/ibm_5291/matrix.c @@ -277,7 +277,7 @@ void matrix_print(void) { print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/converter/m0110_usb/matrix.c b/keyboards/converter/m0110_usb/matrix.c index 098f9de0ff9a478b41ccb2fb888857006b60ffd7..daba7a138aa61c5ed3b0604214f59d2fa737e664 100644 --- a/keyboards/converter/m0110_usb/matrix.c +++ b/keyboards/converter/m0110_usb/matrix.c @@ -93,7 +93,7 @@ uint8_t matrix_scan(void) } if (debug_enable) { - print("["); phex(key); print("]\n"); + print("["); print_hex8(key); print("]\n"); } matrix_scan_quantum(); diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 590b5eea32f652f261574a0632344c398f245132..289284b616705b3692dd04bd7a0addbcca87667a 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c @@ -381,8 +381,8 @@ void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < matrix_rows(); row++) { - phex(row); print(": "); - pbin_reverse(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse8(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c index c379e8237c96365046e05df3d7f356f09917f7b6..21f45111ecebfa9610f43128355d915b2ad0ab04 100644 --- a/keyboards/converter/sun_usb/matrix.c +++ b/keyboards/converter/sun_usb/matrix.c @@ -181,8 +181,8 @@ void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < matrix_rows(); row++) { - phex(row); print(": "); - pbin_reverse(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse8(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/converter/xt_usb/matrix.c b/keyboards/converter/xt_usb/matrix.c index d48f1a887f59d52951d2eb335bcaf19b9d337c6a..d75f077ce9c9f995f3162881ac76753f2fbd6987 100644 --- a/keyboards/converter/xt_usb/matrix.c +++ b/keyboards/converter/xt_usb/matrix.c @@ -233,7 +233,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/crkbd/rev1/legacy/matrix.c b/keyboards/crkbd/rev1/legacy/matrix.c index 8eb028137bd57200da383786afa2dc71b3ad4e66..371b1913e15e43e607ca191df492c5a623b199c3 100644 --- a/keyboards/crkbd/rev1/legacy/matrix.c +++ b/keyboards/crkbd/rev1/legacy/matrix.c @@ -350,8 +350,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/dc01/arrow/matrix.c b/keyboards/dc01/arrow/matrix.c index 1823138c39d07f2accbf25f51aab5dc7b8a2dcbb..80fbbb1b04b087ca709d18ae37db33043fe3429d 100644 --- a/keyboards/dc01/arrow/matrix.c +++ b/keyboards/dc01/arrow/matrix.c @@ -238,7 +238,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index 0e7b591f82cf23d4646f49adfcb29a3a475f1ec3..41ecb8e17896d6fe505d6b408673ca252e38e829 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c @@ -278,7 +278,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/dc01/numpad/matrix.c b/keyboards/dc01/numpad/matrix.c index f8b725adc2853c36f2fa0f1c861a542c303385c1..1eba58cc7c929ba0b0a48d70198a4b518892e2da 100644 --- a/keyboards/dc01/numpad/matrix.c +++ b/keyboards/dc01/numpad/matrix.c @@ -238,7 +238,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c index 6ec3a3b7231433f8c02173631c267ffb95c5c413..8338453430a3c995ca0bf50a1f1f7f99f64a49f8 100644 --- a/keyboards/dc01/right/matrix.c +++ b/keyboards/dc01/right/matrix.c @@ -238,7 +238,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/dichotomy/matrix.c b/keyboards/dichotomy/matrix.c index 2400753cc1e082ea6f384fbd27a8026bf0ebe767..ed83bd452c103c7cfd1e6299ccbac408ba3f6e5a 100755 --- a/keyboards/dichotomy/matrix.c +++ b/keyboards/dichotomy/matrix.c @@ -210,7 +210,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/dm9records/ergoinu/matrix.c b/keyboards/dm9records/ergoinu/matrix.c index 4a80cf9f24f5b507abffeb4009b9d323a6cd72d4..b1c58f88fe7979dd0de35f40a38430f02bd5fe76 100644 --- a/keyboards/dm9records/ergoinu/matrix.c +++ b/keyboards/dm9records/ergoinu/matrix.c @@ -245,8 +245,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/ergodone/matrix.c b/keyboards/ergodone/matrix.c index 456f73c954d5aed442896fde7eace5ceb1ffdaee..3973ff3484ce165deb794c99e4b447667a6f4a40 100644 --- a/keyboards/ergodone/matrix.c +++ b/keyboards/ergodone/matrix.c @@ -152,8 +152,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/ergotaco/matrix.c b/keyboards/ergotaco/matrix.c index e28f754e67eeba2e1c002844b71f4fb0fc862295..e5af1c27fd75c6f916729f891a4f3aa74f11c9ce 100644 --- a/keyboards/ergotaco/matrix.c +++ b/keyboards/ergotaco/matrix.c @@ -220,8 +220,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/georgi/matrix.c b/keyboards/georgi/matrix.c index f0b69c841abbe28ad6d2cc0710feff7d08723bbf..438412102b580867a599194b708107503428b288 100644 --- a/keyboards/georgi/matrix.c +++ b/keyboards/georgi/matrix.c @@ -241,8 +241,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/gergo/matrix.c b/keyboards/gergo/matrix.c index 080eaea40f37d977f369398d283ceee176ba5e44..655e7293566dc5b259e81990870c5f69461ae2bb 100644 --- a/keyboards/gergo/matrix.c +++ b/keyboards/gergo/matrix.c @@ -285,8 +285,8 @@ inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; } void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/handwired/dactyl/matrix.c b/keyboards/handwired/dactyl/matrix.c index faa5c19cf259a5d65c91a57a25cea4dcd5417fb3..0f4f98ad8dc0c46503e0709b4ca653c02d6d4abd 100644 --- a/keyboards/handwired/dactyl/matrix.c +++ b/keyboards/handwired/dactyl/matrix.c @@ -297,8 +297,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/handwired/datahand/matrix.c b/keyboards/handwired/datahand/matrix.c index a08450d779b9ebdfc4d99227589e3efb5064518b..c3f6bd42f3e95b13167423043f2177302d7a3b62 100644 --- a/keyboards/handwired/datahand/matrix.c +++ b/keyboards/handwired/datahand/matrix.c @@ -75,7 +75,7 @@ void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); + print_hex8(row); print(": "); print_bin_reverse8(matrix_get_row(row)); print("\n"); diff --git a/keyboards/handwired/frenchdev/matrix.c b/keyboards/handwired/frenchdev/matrix.c index c9c7e94aea768a73403f4f69978f7aec0bdf7a89..5ab254a6f95a233826a3fd8abef05f2c1ad406af 100644 --- a/keyboards/handwired/frenchdev/matrix.c +++ b/keyboards/handwired/frenchdev/matrix.c @@ -196,8 +196,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/handwired/not_so_minidox/matrix.c b/keyboards/handwired/not_so_minidox/matrix.c index aca9daedcb703c6323af71e24058888f9c5d1b66..b7cec9370c5cfb95dfbe4c151aca8c21ffbf59ed 100644 --- a/keyboards/handwired/not_so_minidox/matrix.c +++ b/keyboards/handwired/not_so_minidox/matrix.c @@ -261,8 +261,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/handwired/owlet60/matrix.c b/keyboards/handwired/owlet60/matrix.c index dafc19fcc487b1684374064f77cb19883a53d1d5..211273d1fad9a5da2eed1fe1a168bdf4b4e5c21a 100644 --- a/keyboards/handwired/owlet60/matrix.c +++ b/keyboards/handwired/owlet60/matrix.c @@ -124,7 +124,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/handwired/promethium/matrix.c b/keyboards/handwired/promethium/matrix.c index b4a4c6396afe0174b16ea952630b13b2fc90a34a..e3a41af288c5c24ed4fecded25bef7e1ae21ddfe 100644 --- a/keyboards/handwired/promethium/matrix.c +++ b/keyboards/handwired/promethium/matrix.c @@ -180,7 +180,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/handwired/pterodactyl/matrix.c b/keyboards/handwired/pterodactyl/matrix.c index 5f13cb30bbd1a7d11827e01978c6b765ccb5f0db..507f640bd0f3007e8dc74187540c8da6e9d2bad1 100644 --- a/keyboards/handwired/pterodactyl/matrix.c +++ b/keyboards/handwired/pterodactyl/matrix.c @@ -310,8 +310,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/helix/pico/matrix.c b/keyboards/helix/pico/matrix.c index 27170e03941b8f49c6ba82877748672ade6fe73b..b18213d846bf38167221fe6219135c0ccffb69ea 100644 --- a/keyboards/helix/pico/matrix.c +++ b/keyboards/helix/pico/matrix.c @@ -295,8 +295,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/helix/rev1/matrix.c b/keyboards/helix/rev1/matrix.c index 06ef49b563d6d3439e3d9eeacb6a4d9685e91b73..aa2cc76905e961a9655a08e6fc083b1c4b04029e 100644 --- a/keyboards/helix/rev1/matrix.c +++ b/keyboards/helix/rev1/matrix.c @@ -261,8 +261,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/helix/rev2/matrix.c b/keyboards/helix/rev2/matrix.c index 8ea070aa3a4518ef57ca7006289781fda421c291..8eed7e58b74dc45a01d26607b87c4f92b6ddc2de 100644 --- a/keyboards/helix/rev2/matrix.c +++ b/keyboards/helix/rev2/matrix.c @@ -309,8 +309,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/hid_liber/matrix.c b/keyboards/hid_liber/matrix.c index 05554a24c8ab370423cdf63af7b90df7234c1587..ff59a171534153f820ec2964b0861968c5695fc3 100755 --- a/keyboards/hid_liber/matrix.c +++ b/keyboards/hid_liber/matrix.c @@ -246,8 +246,8 @@ void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse8(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/honeycomb/matrix.c b/keyboards/honeycomb/matrix.c index 2bed690689cdbe573cdddd360722c544008a4ab5..7fef6f0fd8522f0a22294a976957a42a8166d8ee 100755 --- a/keyboards/honeycomb/matrix.c +++ b/keyboards/honeycomb/matrix.c @@ -186,7 +186,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/hotdox/matrix.c b/keyboards/hotdox/matrix.c index 605be30220e65669bedd4289165f5127261b0462..5d0b0f6dd58f1057d2b110879eb0a86d61ae1585 100644 --- a/keyboards/hotdox/matrix.c +++ b/keyboards/hotdox/matrix.c @@ -154,8 +154,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/keyboardio/model01/matrix.c b/keyboards/keyboardio/model01/matrix.c index 92cca99137fcc905300f1bfe3ea7ee5a89ff1f36..450e48d947806a4e9f3a58f6478bd12c42602e4a 100644 --- a/keyboards/keyboardio/model01/matrix.c +++ b/keyboards/keyboardio/model01/matrix.c @@ -85,8 +85,8 @@ matrix_row_t matrix_get_row(uint8_t row) { void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/kinesis/alvicstep/matrix.c b/keyboards/kinesis/alvicstep/matrix.c index be2bab039cf3edc559808b3afd35700411d5a509..71619f8167a16b65adfbce953421344a567463e1 100644 --- a/keyboards/kinesis/alvicstep/matrix.c +++ b/keyboards/kinesis/alvicstep/matrix.c @@ -158,8 +158,8 @@ void matrix_print(void) { print("\nr/c 01234567\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse8(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c index 9bc59a078444c1bade0f87720d0ba5ce3ba7ec4a..3d5a3081d17151364128a963f391585ac0765bb5 100644 --- a/keyboards/kmac/matrix.c +++ b/keyboards/kmac/matrix.c @@ -72,7 +72,7 @@ void matrix_print(void) { print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); diff --git a/keyboards/kmini/matrix.c b/keyboards/kmini/matrix.c index 7bfb6503558db700762e718ddc74370726b6e6af..eee19054eac72ecedd1545d295887dee9a5ab3c8 100755 --- a/keyboards/kmini/matrix.c +++ b/keyboards/kmini/matrix.c @@ -126,7 +126,7 @@ void matrix_print(void) print("\nr/c 0123456789ABCDEFGHIJKLMNOPQRSTUV \n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_bin_reverse32(matrix_get_row(row)); print("\n"); } diff --git a/keyboards/lily58/rev1/matrix.c b/keyboards/lily58/rev1/matrix.c index eb7e16e24a27b7f4a9c106d81d85b514f5562aa8..d3ba1c924e706dc1a5d858cc42e125ed597d2beb 100755 --- a/keyboards/lily58/rev1/matrix.c +++ b/keyboards/lily58/rev1/matrix.c @@ -310,8 +310,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/meira/matrix.c b/keyboards/meira/matrix.c index 7de188a68c65722357af27491d145c959167826b..c1bfb5868feb8eb928b684d0e4fcdc473b2aeea8 100644 --- a/keyboards/meira/matrix.c +++ b/keyboards/meira/matrix.c @@ -183,8 +183,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/mitosis/matrix.c b/keyboards/mitosis/matrix.c index 717a810678f272603959fe3d205d3052ac0779dd..71c372a3ce80c5539cf38bde33130094a65d3f63 100644 --- a/keyboards/mitosis/matrix.c +++ b/keyboards/mitosis/matrix.c @@ -139,7 +139,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c index c74c70f897784f925355698080078bd6a7367d68..24b4d49560fd3c12cfcb13d2eddfe06e3f1ae0c7 100644 --- a/keyboards/moon/matrix.c +++ b/keyboards/moon/matrix.c @@ -118,7 +118,7 @@ void matrix_print(void) { print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); diff --git a/keyboards/mschwingen/modelm/matrix.c b/keyboards/mschwingen/modelm/matrix.c index ef725a61eb722a1dc88172332f1aacb7212f9efa..ffc1284eadd9f63493a9af293730c38b8f287f35 100644 --- a/keyboards/mschwingen/modelm/matrix.c +++ b/keyboards/mschwingen/modelm/matrix.c @@ -63,7 +63,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col) row_data |= spi_read(); #if DEBUG - phex(~row_data); + print_hex8(~row_data); uprint(" "); #endif // For each row... diff --git a/keyboards/nek_type_a/matrix.c b/keyboards/nek_type_a/matrix.c index 1da5b44a3c1c947ac4912f80c9e66f958c24143f..a59598a50334008165d9efd9cb62762b9d9e8688 100644 --- a/keyboards/nek_type_a/matrix.c +++ b/keyboards/nek_type_a/matrix.c @@ -236,7 +236,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/redox_w/matrix.c b/keyboards/redox_w/matrix.c index 15ca66e34d2e75af83dc9f79fee0b2ca65316b2a..703987a93967ec940b67cbcebbbb4a1d5ad68f8b 100644 --- a/keyboards/redox_w/matrix.c +++ b/keyboards/redox_w/matrix.c @@ -146,7 +146,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/redscarf_iiplus/verb/matrix.c b/keyboards/redscarf_iiplus/verb/matrix.c index 54b0f3a9a103bec4996348373d58a33961657e82..42cfb7c037b01926829ce5b52c6122165d5046ec 100755 --- a/keyboards/redscarf_iiplus/verb/matrix.c +++ b/keyboards/redscarf_iiplus/verb/matrix.c @@ -124,7 +124,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/redscarf_iiplus/verc/matrix.c b/keyboards/redscarf_iiplus/verc/matrix.c index 54b0f3a9a103bec4996348373d58a33961657e82..42cfb7c037b01926829ce5b52c6122165d5046ec 100755 --- a/keyboards/redscarf_iiplus/verc/matrix.c +++ b/keyboards/redscarf_iiplus/verc/matrix.c @@ -124,7 +124,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/redscarf_iiplus/verd/matrix.c b/keyboards/redscarf_iiplus/verd/matrix.c index 28568653c5a70b70c1d095a7b0d2c570a14a7932..78d1191b68e68f9c04f20cb38b2626ab02bfdb02 100644 --- a/keyboards/redscarf_iiplus/verd/matrix.c +++ b/keyboards/redscarf_iiplus/verd/matrix.c @@ -124,7 +124,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/sirius/uni660/rev1/matrix.c b/keyboards/sirius/uni660/rev1/matrix.c index 355fa7e5e91c9a44227dc7f1bbb812ce58b8908b..2db6767a46f6f529977811294a525a6d97c2befb 100644 --- a/keyboards/sirius/uni660/rev1/matrix.c +++ b/keyboards/sirius/uni660/rev1/matrix.c @@ -144,7 +144,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/sirius/uni660/rev2/matrix.c b/keyboards/sirius/uni660/rev2/matrix.c index 355fa7e5e91c9a44227dc7f1bbb812ce58b8908b..2db6767a46f6f529977811294a525a6d97c2befb 100644 --- a/keyboards/sirius/uni660/rev2/matrix.c +++ b/keyboards/sirius/uni660/rev2/matrix.c @@ -144,7 +144,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/sx60/matrix.c b/keyboards/sx60/matrix.c index 58647d13b088f2e8aa31c88725713bdf9bc977d4..6fa0dd1456502038ee605b3fdff0255e20060554 100644 --- a/keyboards/sx60/matrix.c +++ b/keyboards/sx60/matrix.c @@ -203,7 +203,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/telophase/matrix.c b/keyboards/telophase/matrix.c index 8edfce62d2a55edeb25f8c3f835836a1d3e1468b..bc7a125e076c3135743fecde8b86ab90e3c2ca22 100644 --- a/keyboards/telophase/matrix.c +++ b/keyboards/telophase/matrix.c @@ -148,7 +148,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/thedogkeyboard/matrix.c b/keyboards/thedogkeyboard/matrix.c index e06fc15dc4fb03be6583b2ef6b62528d0bf8cc89..474fbec030c9f17e32a58da6b3c29413ba026996 100644 --- a/keyboards/thedogkeyboard/matrix.c +++ b/keyboards/thedogkeyboard/matrix.c @@ -120,7 +120,7 @@ void matrix_print(void) print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); } diff --git a/keyboards/ymdk/sp64/matrix.c b/keyboards/ymdk/sp64/matrix.c index 8dd2bb8d765b6e020301a1c4539e2cc48176710b..74bddc0578dbca4a8c4d423981fc64eec8a30b71 100644 --- a/keyboards/ymdk/sp64/matrix.c +++ b/keyboards/ymdk/sp64/matrix.c @@ -137,8 +137,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/keyboards/yosino58/rev1/matrix.c b/keyboards/yosino58/rev1/matrix.c index 20efb69229968374bf3dbd6d8663ff7fcfd089cd..3db40b3829dab6295a37207c10f6398271f310b1 100644 --- a/keyboards/yosino58/rev1/matrix.c +++ b/keyboards/yosino58/rev1/matrix.c @@ -311,8 +311,8 @@ void matrix_print(void) { print("\nr/c 0123456789ABCDEF\n"); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + print_hex8(row); print(": "); + print_bin_reverse16(matrix_get_row(row)); print("\n"); } } diff --git a/quantum/matrix_common.c b/quantum/matrix_common.c index 01d2b38e5e51c2942f504a9fa889ac73f92da51a..efbad6a5fd11872a9d9a3e9c48350584719fb1e4 100644 --- a/quantum/matrix_common.c +++ b/quantum/matrix_common.c @@ -69,7 +69,7 @@ void matrix_print(void) { print_matrix_header(); for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - phex(row); + print_hex8(row); print(": "); print_matrix_row(row); print("\n"); diff --git a/tmk_core/common/command.c b/tmk_core/common/command.c index 59aa4e4d34fb155c17a71351d22fffdbab5d803f..34c4b36b1c0ed56cfc0aae9ca8770df30d4d01f1 100644 --- a/tmk_core/common/command.c +++ b/tmk_core/common/command.c @@ -550,22 +550,22 @@ static void mousekey_param_print(void) { # if !defined(NO_PRINT) && !defined(USER_PRINT) print("\n\t- Values -\n"); print("1: delay(*10ms): "); - pdec(mk_delay); + print_dec(mk_delay); print("\n"); print("2: interval(ms): "); - pdec(mk_interval); + print_dec(mk_interval); print("\n"); print("3: max_speed: "); - pdec(mk_max_speed); + print_dec(mk_max_speed); print("\n"); print("4: time_to_max: "); - pdec(mk_time_to_max); + print_dec(mk_time_to_max); print("\n"); print("5: wheel_max_speed: "); - pdec(mk_wheel_max_speed); + print_dec(mk_wheel_max_speed); print("\n"); print("6: wheel_time_to_max: "); - pdec(mk_wheel_time_to_max); + print_dec(mk_wheel_time_to_max); print("\n"); # endif /* !NO_PRINT */ } diff --git a/tmk_core/common/mousekey.c b/tmk_core/common/mousekey.c index d8cf63f77101cb6ab6e0951a9cf1a5275b12f225..63e74baa935f64960f15ce93b762bcd6516b6182 100644 --- a/tmk_core/common/mousekey.c +++ b/tmk_core/common/mousekey.c @@ -471,7 +471,7 @@ void mousekey_clear(void) { static void mousekey_debug(void) { if (!debug_mouse) return; print("mousekey [btn|x y v h](rep/acl): ["); - phex(mouse_report.buttons); + print_hex8(mouse_report.buttons); print("|"); print_decs(mouse_report.x); print(" "); diff --git a/tmk_core/common/print.h b/tmk_core/common/print.h index 647a5aa053092e8a4575cff3aa9ad0b0ba50e526..35fcad0f40438a135148d581553f1ea512a1df85 100644 --- a/tmk_core/common/print.h +++ b/tmk_core/common/print.h @@ -258,13 +258,3 @@ extern "C" # define print_val_bin_reverse32(v) #endif /* NO_PRINT */ - -/* Backward compatiblitly for old name */ -#define pdec(data) print_dec(data) -#define pdec16(data) print_dec(data) -#define phex(data) print_hex8(data) -#define phex16(data) print_hex16(data) -#define pbin(data) print_bin8(data) -#define pbin16(data) print_bin16(data) -#define pbin_reverse(data) print_bin_reverse8(data) -#define pbin_reverse16(data) print_bin_reverse16(data) diff --git a/tmk_core/protocol/m0110.c b/tmk_core/protocol/m0110.c index b02a6933d2bdb1149c6fa996efb0e2b19ca789d9..64f2fa50abde9373ff959676956db8377a987dc3 100644 --- a/tmk_core/protocol/m0110.c +++ b/tmk_core/protocol/m0110.c @@ -95,11 +95,11 @@ void m0110_init(void) { uint8_t data; m0110_send(M0110_MODEL); data = m0110_recv(); - print("m0110_init model: "); phex(data); print("\n"); + print("m0110_init model: "); print_hex8(data); print("\n"); m0110_send(M0110_TEST); data = m0110_recv(); - print("m0110_init test: "); phex(data); print("\n"); + print("m0110_init test: "); print_hex8(data); print("\n"); */ } @@ -122,7 +122,7 @@ uint8_t m0110_send(uint8_t data) { return 1; ERROR: print("m0110_send err: "); - phex(m0110_error); + print_hex8(m0110_error); print("\n"); _delay_ms(500); idle(); @@ -146,7 +146,7 @@ uint8_t m0110_recv(void) { return data; ERROR: print("m0110_recv err: "); - phex(m0110_error); + print_hex8(m0110_error); print("\n"); _delay_ms(500); idle(); diff --git a/tmk_core/protocol/ps2_mouse.c b/tmk_core/protocol/ps2_mouse.c index 8df465026bff671806dcd99a889ed23187f00f62..5415453a05f0b31b4fa5d40e02c1d5de48c4fcc1 100644 --- a/tmk_core/protocol/ps2_mouse.c +++ b/tmk_core/protocol/ps2_mouse.c @@ -190,7 +190,7 @@ static inline void ps2_mouse_clear_report(report_mouse_t *mouse_report) { static inline void ps2_mouse_print_report(report_mouse_t *mouse_report) { if (!debug_mouse) return; print("ps2_mouse: ["); - phex(mouse_report->buttons); + print_hex8(mouse_report->buttons); print("|"); print_hex8((uint8_t)mouse_report->x); print(" ");