X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=keyboards%2Fkmac%2Fmatrix.c;h=00da96604d38c14165065cec36dfe2317c36e8ad;hb=3915c8eb00138852a4385701c9ebc71f63654a4b;hp=cfafa90e661fb61d0b2140ec5f24d29128b4f4f5;hpb=d5486265b8afcada68306c815b08c225fce287af;p=qmk_firmware.git diff --git a/keyboards/kmac/matrix.c b/keyboards/kmac/matrix.c index cfafa90e6..00da96604 100644 --- a/keyboards/kmac/matrix.c +++ b/keyboards/kmac/matrix.c @@ -28,8 +28,8 @@ along with this program. If not, see . /* Set 0 if debouncing isn't needed */ -#ifndef DEBOUNCING_DELAY -# define DEBOUNCING_DELAY 5 +#ifndef DEBOUNCE +# define DEBOUNCE 5 #endif #define COL_SHIFTER ((uint32_t)1) @@ -83,7 +83,7 @@ uint8_t matrix_scan(void) } } - if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCING_DELAY)) { + if (debouncing && (timer_elapsed(debouncing_time) > DEBOUNCE)) { for (uint8_t i = 0; i < MATRIX_ROWS; i++) { matrix[i] = matrix_debouncing[i]; } @@ -97,7 +97,7 @@ uint8_t matrix_scan(void) inline bool matrix_is_on(uint8_t row, uint8_t col) { - return (matrix[row] & ((matrix_row_t)1