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
				
			
		| 
						 | 
				
			
			@ -405,10 +405,8 @@ void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
 | 
			
		|||
  rgb_led led;
 | 
			
		||||
  for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
 | 
			
		||||
    led = g_rgb_leds[i];
 | 
			
		||||
    if (led.matrix_co.raw < 0xFF) {
 | 
			
		||||
      if (led.modifier) {
 | 
			
		||||
          rgb_matrix_set_color( i, red, green, blue );
 | 
			
		||||
      }
 | 
			
		||||
    if (HAS_FLAGS(led.flags, LED_FLAG_MODIFIER)) {
 | 
			
		||||
        rgb_matrix_set_color( i, red, green, blue );
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue