changeset 441:b61ee829f278

fix ghost vars, ifdef
author CryHam <cryham@gmail.com>
date Tue, 17 May 2016 10:19:38 +0200
parents 94ef7b561d7d
children e013b0a2a638
files Scan/MatrixARM/matrix_scan.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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