From 1a66743799361bb3ce28747309f71b96a82d34a9 Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Mon, 20 Oct 2025 16:58:19 +0700 Subject: [PATCH] fix(rgbmatrix): restore solid colors when recovering the right side --- keyboards/zsa/moonlander/matrix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/keyboards/zsa/moonlander/matrix.c b/keyboards/zsa/moonlander/matrix.c index f963170041..4543c1946e 100644 --- a/keyboards/zsa/moonlander/matrix.c +++ b/keyboards/zsa/moonlander/matrix.c @@ -105,9 +105,8 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { mcp23018_errors = mcp23018_init_local(false); #ifdef RGB_MATRIX_ENABLE rgb_matrix_init(); - // Required to recover the solid color mode - if (rgb_matrix_get_mode() == 1) { - rgb_matrix_set_color_all(255, 255, 255); + if (rgb_matrix_get_mode() == 1 && keyboard_config.rgb_matrix_enable) { + rgb_matrix_set_color_all(0, 0, 0); } #endif }