summaryrefslogtreecommitdiff
path: root/keyboard/phantom/matrix.c
diff options
context:
space:
mode:
authorMathias Andersson <wraul@dbox.se>2013-05-18 12:52:04 +0200
committerMathias Andersson <wraul@dbox.se>2013-05-27 20:52:28 +0200
commit5c5312c508ad40c418c321756d933e7ebcecb90a (patch)
tree9290f6a8e71bb1d9702c9467c5a6d56b2c180e33 /keyboard/phantom/matrix.c
parent862a006190f2ed568d68e22a25b878a3d6368bc0 (diff)
Update Phantom debug print
This updates the Phantom project to use the new debug print functions.
Diffstat (limited to 'keyboard/phantom/matrix.c')
-rw-r--r--keyboard/phantom/matrix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/keyboard/phantom/matrix.c b/keyboard/phantom/matrix.c
index 386feea41f..49d6b738e6 100644
--- a/keyboard/phantom/matrix.c
+++ b/keyboard/phantom/matrix.c
@@ -100,7 +100,7 @@ uint8_t matrix_scan(void)
if (prev_bit != curr_bit) {
matrix_debouncing[row] ^= ((matrix_row_t)1<<col);
if (debouncing) {
- debug("bounce!: "); debug_hex(debouncing); print("\n");
+ dprint("bounce!: "); dprintf("%02X", debouncing); dprintln();
}
debouncing = DEBOUNCE;
}
@@ -143,9 +143,7 @@ void matrix_print(void)
{
print("\nr/c 0123456789ABCDEF\n");
for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
- phex(row); print(": ");
- print_bin_reverse32(matrix_get_row(row));
- print("\n");
+ xprintf("%02X: %032lb\n", row, bitrev32(matrix_get_row(row)));
}
}