[Core] RGB Matrix limit basic indicators to the last render (#21169)
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
		
							parent
							
								
									ed6528b3e3
								
							
						
					
					
						commit
						c4f66e5d6e
					
				
					 4 changed files with 12 additions and 4 deletions
				
			
		|  | @ -366,7 +366,10 @@ void led_matrix_task(void) { | |||
|         case RENDERING: | ||||
|             led_task_render(effect); | ||||
|             if (effect) { | ||||
|                 led_matrix_indicators(); | ||||
|                 // Only run the basic indicators in the last render iteration (default there are 5 iterations)
 | ||||
|                 if (led_effect_params.iter == LED_MATRIX_LED_PROCESS_MAX_ITERATIONS) { | ||||
|                     led_matrix_indicators(); | ||||
|                 } | ||||
|                 led_matrix_indicators_advanced(&led_effect_params); | ||||
|             } | ||||
|             break; | ||||
|  |  | |||
|  | @ -42,8 +42,9 @@ | |||
| #endif | ||||
| 
 | ||||
| #ifndef LED_MATRIX_LED_PROCESS_LIMIT | ||||
| #    define LED_MATRIX_LED_PROCESS_LIMIT (LED_MATRIX_LED_COUNT + 4) / 5 | ||||
| #    define LED_MATRIX_LED_PROCESS_LIMIT ((LED_MATRIX_LED_COUNT + 4) / 5) | ||||
| #endif | ||||
| #define LED_MATRIX_LED_PROCESS_MAX_ITERATIONS ((LED_MATRIX_LED_COUNT + LED_MATRIX_LED_PROCESS_LIMIT - 1) / LED_MATRIX_LED_PROCESS_LIMIT) | ||||
| 
 | ||||
| #if defined(LED_MATRIX_LED_PROCESS_LIMIT) && LED_MATRIX_LED_PROCESS_LIMIT > 0 && LED_MATRIX_LED_PROCESS_LIMIT < LED_MATRIX_LED_COUNT | ||||
| #    if defined(LED_MATRIX_SPLIT) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Xelus22
						Xelus22