[Core] RGB Matrix limit basic indicators to the last render (#21169)

Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
Xelus22 2023-07-03 08:56:48 +10:00 committed by GitHub
parent ed6528b3e3
commit c4f66e5d6e
Failed to generate hash of commit
4 changed files with 12 additions and 4 deletions

View file

@ -428,7 +428,10 @@ void rgb_matrix_task(void) {
case RENDERING:
rgb_task_render(effect);
if (effect) {
rgb_matrix_indicators();
// Only run the basic indicators in the last render iteration (default there are 5 iterations)
if (rgb_effect_params.iter == RGB_MATRIX_LED_PROCESS_MAX_ITERATIONS) {
rgb_matrix_indicators();
}
rgb_matrix_indicators_advanced(&rgb_effect_params);
}
break;