[Keyboard] Fix Q1 change dip switch to bool (#13687)
This commit is contained in:
		
							parent
							
								
									d972919204
								
							
						
					
					
						commit
						ab42945c9a
					
				
					 1 changed files with 13 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -25,11 +25,12 @@ const matrix_row_t matrix_mask[] = {
 | 
			
		|||
    0b0111111111111111,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void dip_switch_update_kb(uint8_t index, bool active) { 
 | 
			
		||||
bool dip_switch_update_kb(uint8_t index, bool active) {
 | 
			
		||||
    if (!dip_switch_update_user(index, active)) { return false;}
 | 
			
		||||
    if (index == 0) {
 | 
			
		||||
        default_layer_set(1UL << (active ? 2 : 0));
 | 
			
		||||
    }
 | 
			
		||||
    dip_switch_update_user(index, active);
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue