From: Alex Ong Date: Wed, 24 Jan 2018 03:15:56 +0000 (+1100) Subject: core: Saved 60~ bytes (and possible performance) by storing col_mask when iterating... X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=ad6059adc7039a54d1db75da783068654906a679;p=max%2Ftmk_keyboard.git core: Saved 60~ bytes (and possible performance) by storing col_mask when iterating through columns (#522) --- diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index 864db2b2..929b862a 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c @@ -126,17 +126,18 @@ void keyboard_task(void) matrix_ghost[r] = matrix_row; #endif if (debug_matrix) matrix_print(); - for (uint8_t c = 0; c < MATRIX_COLS; c++) { - if (matrix_change & ((matrix_row_t)1<