From ec136d720bab90116369e7b6523da98be6c3dc26 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Sun, 4 May 2014 01:42:56 +0900 Subject: [PATCH] Fix bug of col reading --- keyboard/akb96/matrix.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/keyboard/akb96/matrix.c b/keyboard/akb96/matrix.c index df1c32d8..6c4a47d9 100644 --- a/keyboard/akb96/matrix.c +++ b/keyboard/akb96/matrix.c @@ -41,15 +41,6 @@ static void init_cols(void); static void unselect_rows(void); static void select_row(uint8_t row); -#ifdef PS2_MOUSE_ENABLE -static uint8_t ps2_mouse_detected; - -uint8_t ps2_enabled(void) -{ - return ps2_mouse_detected; -} -#endif - inline uint8_t matrix_rows(void) { @@ -150,7 +141,7 @@ uint8_t matrix_key_count(void) * pin: D12 D13 A0 A1 A2 A3 (arduino) * PD6 PC7 PF7 PF6 PF5 PF4 */ -static void init_cols(void) +static void init_cols(void) { // Input with pull-up(DDR:0, PORT:1) DDRF &= ~(1<