diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-09-15 10:07:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-15 10:07:08 -0700 |
| commit | 169d5bd21d9381843914b4c23cbca1b447e905c6 (patch) | |
| tree | 4609eacc9383b3dbce347005a0bd6974f6f46cfe /quantum/rgb_matrix | |
| parent | 7e36a8138379cab2d27a9db407850b67e46e0d0b (diff) | |
| download | qmk_firmware-169d5bd21d9381843914b4c23cbca1b447e905c6.tar.gz qmk_firmware-169d5bd21d9381843914b4c23cbca1b447e905c6.zip | |
[Bug] Fix IS31fl3741 driver to accept 1 or 2 addresses (#14451)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'quantum/rgb_matrix')
| -rw-r--r-- | quantum/rgb_matrix/rgb_matrix_drivers.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/quantum/rgb_matrix/rgb_matrix_drivers.c b/quantum/rgb_matrix/rgb_matrix_drivers.c index bfaedaa4a..2cec162e2 100644 --- a/quantum/rgb_matrix/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix/rgb_matrix_drivers.c | |||
| @@ -172,7 +172,12 @@ const rgb_matrix_driver_t rgb_matrix_driver = { | |||
| 172 | .set_color_all = IS31FL3737_set_color_all, | 172 | .set_color_all = IS31FL3737_set_color_all, |
| 173 | }; | 173 | }; |
| 174 | # else | 174 | # else |
| 175 | static void flush(void) { IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, DRIVER_ADDR_2); } | 175 | static void flush(void) { |
| 176 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_1, 0); | ||
| 177 | # if defined(DRIVER_ADDR_2) && (DRIVER_ADDR_2 != DRIVER_ADDR_1) // provides backward compatibility | ||
| 178 | IS31FL3741_update_pwm_buffers(DRIVER_ADDR_2, 1); | ||
| 179 | # endif | ||
| 180 | } | ||
| 176 | 181 | ||
| 177 | const rgb_matrix_driver_t rgb_matrix_driver = { | 182 | const rgb_matrix_driver_t rgb_matrix_driver = { |
| 178 | .init = init, | 183 | .init = init, |
