Fix compilation error when led/rgb process limit is zero. (#22328)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
@ -383,8 +383,7 @@ void rgb_matrix_task(void) {
|
||||
case RENDERING:
|
||||
rgb_task_render(effect);
|
||||
if (effect) {
|
||||
// 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) {
|
||||
if (rgb_task_state == FLUSHING) { // ensure we only draw basic indicators once rendering is finished
|
||||
rgb_matrix_indicators();
|
||||
}
|
||||
rgb_matrix_indicators_advanced(&rgb_effect_params);
|
||||
|
Reference in New Issue
Block a user