Fix Per Key LED Indicator Callbacks (#18450)
Co-authored-by: Dasky <32983009+daskygit@users.noreply.github.com> Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
		
							parent
							
								
									09d3e27710
								
							
						
					
					
						commit
						64b1ed4550
					
				
					 218 changed files with 1430 additions and 1271 deletions
				
			
		| 
						 | 
				
			
			@ -103,10 +103,11 @@ static void set_numpad_colours(int on, void (*write)(int, uint8_t, uint8_t, uint
 | 
			
		|||
/* the RGB matrix effects will overwrite the numpad indicator.
 | 
			
		||||
 * this handy mechanism allows to override the matrix effects.
 | 
			
		||||
 */
 | 
			
		||||
void rgb_matrix_indicators_user(void) {
 | 
			
		||||
  if (layer_state & (1<<NUM)) {
 | 
			
		||||
    set_numpad_colours(1, &rgb_matrix_set_color);
 | 
			
		||||
  }
 | 
			
		||||
bool rgb_matrix_indicators_user(void) {
 | 
			
		||||
    if (layer_state & (1 << NUM)) {
 | 
			
		||||
        set_numpad_colours(1, &rgb_matrix_set_color);
 | 
			
		||||
    }
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
#else   /* no RGB matrix support */
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue