X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fkeyboard.c;h=cd1ceb420cfac3b9089f1627b6a5720735852376;hb=83f0e800e53a6d91a814d19f94bc5401a6322971;hp=bda7c0625bff83f481699c879ba84e11a23df225;hpb=9389585d3d16319d5d739eef84f4ff11076235c1;p=max%2Ftmk_keyboard.git diff --git a/common/keyboard.c b/common/keyboard.c index bda7c062..cd1ceb42 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -544,7 +544,7 @@ static inline void process_key(keyevent_t event) void keyboard_init(void) { - debug_keyboard = true; + // TODO: to enable debug print magic key bind on boot time // TODO: configuration of sendchar impl print_sendchar_func = sendchar; @@ -564,20 +564,20 @@ void keyboard_task(void) matrix_row_t matrix_change = 0; matrix_scan(); - for (int r = 0; r < MATRIX_ROWS; r++) { + for (uint8_t r = 0; r < MATRIX_ROWS; r++) { matrix_row = matrix_get_row(r); matrix_change = matrix_row ^ matrix_prev[r]; if (matrix_change) { if (debug_matrix) matrix_print(); - for (int c = 0; c < MATRIX_COLS; c++) { - if (matrix_change & (1<