mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-01-10 23:53:25 +00:00
fix(rgbmatrix): restore solid colors when recovering the right side
This commit is contained in:
@@ -105,9 +105,8 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
|||||||
mcp23018_errors = mcp23018_init_local(false);
|
mcp23018_errors = mcp23018_init_local(false);
|
||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
rgb_matrix_init();
|
rgb_matrix_init();
|
||||||
// Required to recover the solid color mode
|
if (rgb_matrix_get_mode() == 1 && keyboard_config.rgb_matrix_enable) {
|
||||||
if (rgb_matrix_get_mode() == 1) {
|
rgb_matrix_set_color_all(0, 0, 0);
|
||||||
rgb_matrix_set_color_all(255, 255, 255);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user