summaryrefslogtreecommitdiffstats
path: root/keyboard/hhkb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-17 21:43:44 +0900
committertmk <nobody@nowhere>2012-10-17 21:43:44 +0900
commitce2e06c39465b76a1780e5d594eaea7697afafd6 (patch)
treefa5d10c6741380190825a27a1c77a38ee5a893d9 /keyboard/hhkb
parent8570c25379e168874fb4cdc7ee0590829a0f0d2c (diff)
Fix projects for new keycodes
Diffstat (limited to 'keyboard/hhkb')
-rw-r--r--keyboard/hhkb/matrix.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/keyboard/hhkb/matrix.c b/keyboard/hhkb/matrix.c
index 01473d1ec7..fd0d6f97f6 100644
--- a/keyboard/hhkb/matrix.c
+++ b/keyboard/hhkb/matrix.c
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
-#include "debug.h"
+#include "print.h"
#include "util.h"
#include "timer.h"
#include "matrix.h"
@@ -228,24 +228,21 @@ uint16_t matrix_get_row(uint8_t row)
return matrix[row];
}
-void matrix_debug(void)
+void matrix_print(void)
{
- if (!debug_matrix)
- return;
-
#if (MATRIX_COLS <= 8)
- debug("\nr/c 01234567\n");
+ print("\nr/c 01234567\n");
#else
- debug("\nr/c 0123456789ABCDEF\n");
+ print("\nr/c 0123456789ABCDEF\n");
#endif
for (uint8_t row = 0; row < matrix_rows(); row++) {
- debug_hex(row); debug(": ");
+ phex(row); print(": ");
#if (MATRIX_COLS <= 8)
- debug_bin_reverse(matrix_get_row(row));
+ pbin_reverse(matrix_get_row(row));
#else
- debug_bin_reverse16(matrix_get_row(row));
+ pbin_reverse16(matrix_get_row(row));
#endif
- debug("\n");
+ print("\n");
}
}