diff options
author | Drashna Jaelre <drashna@live.com> | 2022-07-29 00:35:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 16:35:50 +0900 |
commit | ba203943707a793641941d5c96dbaf05691fc263 (patch) | |
tree | 3c67bb5984a74a5615084e48bdf97f053a2d9717 /keyboards/ergodox_ez/matrix.c | |
parent | d3c3625aaf4dc93159f1a4180c85224c318db208 (diff) |
Fix lag issues when rgblight cannot connect to i2c rgb bridge (#354)
Diffstat (limited to 'keyboards/ergodox_ez/matrix.c')
-rw-r--r-- | keyboards/ergodox_ez/matrix.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index ddfbc6100e..f1ec50fa34 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c @@ -63,6 +63,9 @@ static void unselect_rows(void); static void select_row(uint8_t row); static uint8_t mcp23018_reset_loop; +#ifdef RGBLIGHT_ENABLE +extern i2c_status_t i2c_rgblight; +#endif void matrix_init_custom(void) { // initialize row and col @@ -97,6 +100,9 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { #ifdef RGB_MATRIX_ENABLE rgb_matrix_init(); // re-init driver on reconnect #endif +#ifdef RGBLIGHT_ENABLE + i2c_rgblight = 0x20; // re-enable rgb light +#endif } } } |