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
				
			
		|  | @ -99,12 +99,12 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
| 
 | ||||
| #elif defined(WS2812) | ||||
| 
 | ||||
| extern LED_TYPE led[RGBLED_NUM]; | ||||
| extern LED_TYPE led[DRIVER_LED_TOTAL]; | ||||
| 
 | ||||
|   static void flush( void ) | ||||
|   { | ||||
|     // Assumes use of RGB_DI_PIN
 | ||||
|     ws2812_setleds(led, RGBLED_NUM); | ||||
|     ws2812_setleds(led, DRIVER_LED_TOTAL); | ||||
|   } | ||||
| 
 | ||||
|   static void init( void ) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 XScorpion2
						XScorpion2