1
0
Fork 0

Fix compilation error when led/rgb process limit is zero. (#22328)

Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Dasky 2023-10-24 13:45:33 +01:00 committed by GitHub
parent c245ee4cd3
commit 7e0147f8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 7 deletions

View file

@ -342,9 +342,8 @@ void led_matrix_task(void) {
case RENDERING:
led_task_render(effect);
if (effect) {
// 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();
if (led_task_state == FLUSHING) {
led_matrix_indicators(); // ensure we only draw basic indicators once rendering is finished
}
led_matrix_indicators_advanced(&led_effect_params);
}