From 24483be2f78f929d1b7583e55fcf2364c50387d8 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Wed, 14 Dec 2016 21:17:36 +0900 Subject: [PATCH] kimera: Improve some debug messages --- keyboard/kimera/kimera.c | 6 ++++-- keyboard/kimera/matrix.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/keyboard/kimera/kimera.c b/keyboard/kimera/kimera.c index 470d84d5..2be458e9 100644 --- a/keyboard/kimera/kimera.c +++ b/keyboard/kimera/kimera.c @@ -23,6 +23,7 @@ along with this program. If not, see . #include "i2cmaster.h" #include "kimera.h" #include "debug.h" +#include "print.h" static uint8_t row_mapping[PX_COUNT] = { 0, 1, 2, 3, 4, 5, 6, 7, @@ -62,6 +63,7 @@ void kimera_init(void) /* read config */ //write_matrix_mapping(); /* debug */ if (read_matrix_mapping()) { + xprintf("Matrix Mapping Error!\n"); write_matrix_mapping(); } @@ -158,8 +160,6 @@ void write_matrix_mapping(void) void kimera_scan(void) { uint8_t ret; - dprintf("exp in use: %d\n", exp_in_use); - dprintf("exp online: %d\n", exp_online); for (uint8_t exp = 0; exp < EXP_COUNT; exp++) { if (exp_in_use & (1<= 1000) { + xprintf("======== 1s task ========\n"); xprintf("Scan, %u\n", kimera_scan_timestamp); kimera_scan_timestamp = timer_read(); kimera_scan(); + xprintf("=========================\n"); } #if IMPROVED_DEBOUNCE