From 827eec13d2fa26db8eaba866824d99491a8878a1 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Thu, 13 Nov 2014 19:40:21 +0900 Subject: [PATCH] kimera: Print whole matrix when debugging --- keyboard/kimera/matrix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard/kimera/matrix.c b/keyboard/kimera/matrix.c index 677c4d81..7754f239 100644 --- a/keyboard/kimera/matrix.c +++ b/keyboard/kimera/matrix.c @@ -123,10 +123,10 @@ matrix_row_t matrix_get_row(uint8_t row) void matrix_print(void) { - print("\nr/c 0123456789ABCDEF\n"); + print("\nr/c 0123456789ABCDEF0123456789ABCDEF\n"); for (uint8_t row = 0; row < matrix_rows(); row++) { phex(row); print(": "); - pbin_reverse16(matrix_get_row(row)); + pbin_reverse32(matrix_get_row(row)); print("\n"); } } @@ -135,7 +135,7 @@ uint8_t matrix_key_count(void) { uint8_t count = 0; for (uint8_t i = 0; i < matrix_rows(); i++) { - count += bitpop16(matrix[i]); + count += bitpop32(matrix[i]); } return count; }