[core] Fix for eager_pr #5643
Added extra transfer_matrix_values() call whenever counters don't need updating
This commit is contained in:
		
							parent
							
								
									9e3b38425f
								
							
						
					
					
						commit
						7a1086e405
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,11 +48,12 @@ void debounce_init(uint8_t num_rows) {
 | 
			
		|||
 | 
			
		||||
void debounce(matrix_row_t raw[], matrix_row_t cooked[], uint8_t num_rows, bool changed) {
 | 
			
		||||
  uint8_t current_time = timer_read() % MAX_DEBOUNCE;
 | 
			
		||||
  bool needed_update = counters_need_update;
 | 
			
		||||
  if (counters_need_update) {
 | 
			
		||||
    update_debounce_counters(num_rows, current_time);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (changed) {
 | 
			
		||||
  if (changed || (needed_update && !counters_need_update)) {
 | 
			
		||||
    transfer_matrix_values(raw, cooked, num_rows, current_time);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue