Updated rgb_led struct field modifier to flags (#5619)
Updated effects to test led flags Updated massdrop to use new flags field for led toggle
This commit is contained in:
		
							parent
							
								
									1d784f0f95
								
							
						
					
					
						commit
						a7113c8ed0
					
				
					 57 changed files with 1164 additions and 1019 deletions
				
			
		| 
						 | 
				
			
			@ -443,9 +443,9 @@ static void led_matrix_massdrop_config_override(int i)
 | 
			
		|||
 | 
			
		||||
    uint8_t highest_active_layer = biton32(layer_state);
 | 
			
		||||
 | 
			
		||||
    if (led_lighting_mode == LED_MODE_KEYS_ONLY && g_rgb_leds[i].matrix_co.raw == 0xff) {
 | 
			
		||||
    if (led_lighting_mode == LED_MODE_KEYS_ONLY && HAS_FLAGS(g_rgb_leds[i].flags, LED_FLAG_UNDERGLOW)) {
 | 
			
		||||
        //Do not act on this LED
 | 
			
		||||
    } else if (led_lighting_mode == LED_MODE_NON_KEYS_ONLY && g_rgb_leds[i].matrix_co.raw != 0xff) {
 | 
			
		||||
    } else if (led_lighting_mode == LED_MODE_NON_KEYS_ONLY && !HAS_FLAGS(g_rgb_leds[i].flags, LED_FLAG_UNDERGLOW)) {
 | 
			
		||||
        //Do not act on this LED
 | 
			
		||||
    } else if (led_lighting_mode == LED_MODE_INDICATORS_ONLY) {
 | 
			
		||||
        //Do not act on this LED (Only show indicators)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue