From 3ffd875c4a75b26901fc26bafe6a03bfb8b2aed6 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Mon, 11 Aug 2014 15:53:49 +0900 Subject: [PATCH] Fix some declarations --- keyboard/tentapad/matrix.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/keyboard/tentapad/matrix.c b/keyboard/tentapad/matrix.c index 7c9f9c7f..3f58aa69 100644 --- a/keyboard/tentapad/matrix.c +++ b/keyboard/tentapad/matrix.c @@ -36,12 +36,11 @@ along with this program. If not, see . #ifndef DEBOUNCE # define DEBOUNCE 5 #endif -static uint8_t debouncing = DEBOUNCE; -static uint16_t debouncing_last[MATRIX_COLS]; /* matrix state(1:on, 0:off) */ -static matrix_row_t matrix; -static matrix_row_t matrix_debouncing; +static matrix_row_t matrix = 0; +static matrix_row_t debouncing = 0; +static uint16_t debouncing_last[MATRIX_COLS]; static matrix_row_t read_cols(void); static void init_cols(void); @@ -86,10 +85,6 @@ void matrix_init(void) // initialize cols init_cols(); - - // initialize matrix state: all keys off - matrix = 0; - matrix_debouncing = 0; } uint8_t matrix_scan(void)