forked from mirrors/qmk_userspace
		
	Moved debouncing_time variable to inside #if debounce
This commit is contained in:
		
					parent
					
						
							
								5b7fc758d7
							
						
					
				
			
			
				commit
				
					
						14ed96aa06
					
				
			
		
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
					@ -23,12 +23,11 @@ When no state changes have occured for DEBOUNCE milliseconds, we push the state.
 | 
				
			||||||
  #define DEBOUNCE 5
 | 
					  #define DEBOUNCE 5
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static bool debouncing = false;
 | 
					 | 
				
			||||||
static uint16_t debouncing_time;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
void debounce_init(uint8_t num_rows) {}
 | 
					void debounce_init(uint8_t num_rows) {}
 | 
				
			||||||
 | 
					static bool debouncing = false;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if DEBOUNCE > 0
 | 
					#if DEBOUNCE > 0
 | 
				
			||||||
 | 
					static uint16_t debouncing_time;
 | 
				
			||||||
void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed)
 | 
					void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  if (changed) {
 | 
					  if (changed) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue