From 215419e3b9f2b385939209160346c4e4748cf734 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Fri, 12 Dec 2014 16:40:03 +0900 Subject: [PATCH] Fix backlight blinking issue by another way --- keyboard/RedScarfII/matrix.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/keyboard/RedScarfII/matrix.c b/keyboard/RedScarfII/matrix.c index 47fce1d0..2e0f7547 100644 --- a/keyboard/RedScarfII/matrix.c +++ b/keyboard/RedScarfII/matrix.c @@ -39,6 +39,7 @@ static matrix_row_t matrix_debouncing[MATRIX_ROWS]; static matrix_row_t read_cols(void); static void init_cols(void); static void init_rows(void); +static void unselect_rows(void); static void select_row(uint8_t row); inline @@ -83,8 +84,7 @@ uint8_t matrix_scan(void) } debouncing = DEBOUNCE; } - // select next row - select_row((i + 1) % MATRIX_ROWS); + unselect_rows(); } if (debouncing) { @@ -185,6 +185,14 @@ static void init_rows(void) DDRB |= (1<