Fixing incorrect usage of RGBLED_NUM in ws2812 driver when used with RGB Matrix (#5744)
This commit is contained in:
		
							parent
							
								
									61ce41ae13
								
							
						
					
					
						commit
						50bc2dbe77
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -158,7 +158,7 @@ void inline ws2812_setled(int i, uint8_t r, uint8_t g, uint8_t b)
 | 
			
		|||
 | 
			
		||||
void ws2812_setled_all  (uint8_t r, uint8_t g, uint8_t b)
 | 
			
		||||
{
 | 
			
		||||
  for (int i = 0; i < RGBLED_NUM; i++) {
 | 
			
		||||
  for (int i = 0; i < sizeof(led)/sizeof(led[0]); i++) {
 | 
			
		||||
    led[i].r = r;
 | 
			
		||||
    led[i].g = g;
 | 
			
		||||
    led[i].b = b;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue