mirror of
				https://github.com/qmk/qmk_userspace.git
				synced 2025-11-04 02:40:06 -05:00 
			
		
		
		
	Update loop of caps lock and layer indicators
This commit is contained in:
		
					parent
					
						
							
								386e7085f2
							
						
					
				
			
			
				commit
				
					
						e570ac4ac6
					
				
			
		
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -46,10 +46,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
				
			||||||
// Turns side LEDs to white for caps lock and layer indicators.
 | 
					// Turns side LEDs to white for caps lock and layer indicators.
 | 
				
			||||||
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
					bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
 | 
				
			||||||
    if (host_keyboard_led_state().caps_lock || get_highest_layer(layer_state | default_layer_state)) {
 | 
					    if (host_keyboard_led_state().caps_lock || get_highest_layer(layer_state | default_layer_state)) {
 | 
				
			||||||
        for (uint8_t i = led_min; i < led_max; i++) {
 | 
					        for (uint8_t i = 67; i <= 86; i++) {
 | 
				
			||||||
            if (HAS_FLAGS(g_led_config.flags[i], 0x02)) { // 0x02 == LED_FLAG_UNDERGLOW
 | 
					            rgb_matrix_set_color(i, 0xff, 0xff, 0xff);
 | 
				
			||||||
                rgb_matrix_set_color(i, 0xff, 0xff, 0xff);
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return false;
 | 
					    return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue