From f36a09a97ad8761f45044d20825d64a2b0ed3a1e Mon Sep 17 00:00:00 2001 From: CryHam Date: Tue, 17 May 2016 10:19:38 +0200 Subject: [PATCH] fix ghost vars, ifdef --- Scan/MatrixARM/matrix_scan.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scan/MatrixARM/matrix_scan.c b/Scan/MatrixARM/matrix_scan.c index 76f7583..cb5409e 100644 --- a/Scan/MatrixARM/matrix_scan.c +++ b/Scan/MatrixARM/matrix_scan.c @@ -212,18 +212,22 @@ void Matrix_setup() for ( uint8_t pin = 0; pin < Matrix_colsNum; pin++ ) { Matrix_pin( Matrix_cols[ pin ], Type_StrobeSetup ); + #ifdef GHOSTING_MATRIX col_use[pin] = 0; col_ghost[pin] = 0; col_ghost_old[pin] = 0; + #endif } // Setup Sense Pins for ( uint8_t pin = 0; pin < Matrix_rowsNum; pin++ ) { Matrix_pin( Matrix_rows[ pin ], Type_SenseSetup ); + #ifdef GHOSTING_MATRIX row_use[pin] = 0; row_ghost[pin] = 0; row_ghost_old[pin] = 0; + #endif } // Clear out Debounce Array