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
				
			
		| 
						 | 
				
			
			@ -73,9 +73,10 @@ led_config_t g_led_config = { {
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
#ifdef USB_LED_INDICATOR_ENABLE
 | 
			
		||||
void rgb_matrix_indicators_kb(void)
 | 
			
		||||
bool rgb_matrix_indicators_kb(void)
 | 
			
		||||
{
 | 
			
		||||
  md_rgb_matrix_indicators();
 | 
			
		||||
    return rgb_matrix_indicators_user();
 | 
			
		||||
}
 | 
			
		||||
#endif // USB_LED_INDICATOR_ENABLE
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -372,13 +372,14 @@ void set_layer_color(int layer) {
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void rgb_matrix_indicators_user(void) {
 | 
			
		||||
bool rgb_matrix_indicators_user(void) {
 | 
			
		||||
    if (disable_layer_color ||
 | 
			
		||||
        rgb_matrix_get_flags() == LED_FLAG_NONE ||
 | 
			
		||||
        rgb_matrix_get_flags() == LED_FLAG_UNDERGLOW) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
    set_layer_color(get_highest_layer(layer_state));
 | 
			
		||||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* This is a test function for Raw HID, which is currently not implemented for this keyboard */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue