diff options
author | CobraSock <[email protected]> | 2023-04-03 15:46:00 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-04-04 08:46:00 +1000 |
commit | d82c6648f50d72820effce6077084c8a2dce1b18 (patch) | |
tree | e04c5ba01770a4df93a43478612e114d402cd705 /quantum/rgb_matrix/rgb_matrix.c | |
parent | b67bdf222e0bc98b846f20e22152cd0a007fb9f7 (diff) | |
download | qmk_firmware-d82c6648f50d72820effce6077084c8a2dce1b18.tar.gz qmk_firmware-d82c6648f50d72820effce6077084c8a2dce1b18.zip |
Fixed split keyboard issue where custom LED indicators could activate incorrect LEDs (#20203) (#20204)
Co-authored-by: N M <[email protected]>
Fixed split keyboard issue where custom LED indicators could activate incorrect LEDs (#20203)
Diffstat (limited to 'quantum/rgb_matrix/rgb_matrix.c')
-rw-r--r-- | quantum/rgb_matrix/rgb_matrix.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix.c b/quantum/rgb_matrix/rgb_matrix.c index bbb706da69..1f3912cf7e 100644 --- a/quantum/rgb_matrix/rgb_matrix.c +++ b/quantum/rgb_matrix/rgb_matrix.c @@ -459,14 +459,7 @@ void rgb_matrix_indicators_advanced(effect_params_t *params) { * and not sure which would be better. Otherwise, this should be called from * rgb_task_render, right before the iter++ line. */ -#if defined(RGB_MATRIX_LED_PROCESS_LIMIT) && RGB_MATRIX_LED_PROCESS_LIMIT > 0 && RGB_MATRIX_LED_PROCESS_LIMIT < RGB_MATRIX_LED_COUNT - uint8_t min = RGB_MATRIX_LED_PROCESS_LIMIT * (params->iter - 1); - uint8_t max = min + RGB_MATRIX_LED_PROCESS_LIMIT; - if (max > RGB_MATRIX_LED_COUNT) max = RGB_MATRIX_LED_COUNT; -#else - uint8_t min = 0; - uint8_t max = RGB_MATRIX_LED_COUNT; -#endif + RGB_MATRIX_USE_LIMITS_ITER(min, max, params->iter - 1); rgb_matrix_indicators_advanced_kb(min, max); } |