fix(rgbmatrix): restore solid colors when recovering the right side

This commit is contained in:
Florian Didron
2025-10-20 17:03:16 +07:00
parent 1a66743799
commit bca47935dc

View File

@@ -93,7 +93,7 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) {
#ifdef RGB_MATRIX_ENABLE
rgb_matrix_init();
// Required to recover the solid color mode
if (rgb_matrix_get_mode() == 1) {
if (rgb_matrix_get_mode() == 1 && rgb_matrix_is_enabled()) {
rgb_matrix_set_color_all(255, 255, 255);
}
#endif