# HG changeset patch # User CryHam # Date 1463473178 -7200 # Node ID b61ee829f27801d0e9496891765985d9e620e622 # Parent 94ef7b561d7de24644935f056d4b7bda559d0ebb fix ghost vars, ifdef diff -r 94ef7b561d7d -r b61ee829f278 Scan/MatrixARM/matrix_scan.c --- a/Scan/MatrixARM/matrix_scan.c Sun May 08 09:31:48 2016 +0200 +++ b/Scan/MatrixARM/matrix_scan.c Tue May 17 10:19:38 2016 +0200 @@ -212,18 +212,22 @@ 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