diff options
author | Dasky <32983009+daskygit@users.noreply.github.com> | 2023-10-24 13:45:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 13:45:33 +0100 |
commit | 7e0147f8e6cebbf88a6f25c448cbd0246d3ab260 (patch) | |
tree | bec9deca0e7712614121ba92fc73ebb007041efe /quantum/rgb_matrix/rgb_matrix.c | |
parent | c245ee4cd34e768798c4b2c16e1315ebdf3fba79 (diff) |
Fix compilation error when led/rgb process limit is zero. (#22328)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'quantum/rgb_matrix/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c index 8e69616a0e..e56802f164 100644 --- a/quantum/rgb_matrix/rgb_matrix.c +++ b/quantum/rgb_matrix/rgb_matrix.c @@ -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); |