From 1e66361615b999d2cd6da10b9e20e0dad7f8dfc7 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 11 Jul 2024 19:55:18 +0700 Subject: [PATCH] fix: ergodox glow out of bound animation mode when flashing a layout with less animations set --- keyboards/ergodox_ez/ergodox_ez.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyboards/ergodox_ez/ergodox_ez.c b/keyboards/ergodox_ez/ergodox_ez.c index a7e2d99e9b4c..85cc70c58149 100644 --- a/keyboards/ergodox_ez/ergodox_ez.c +++ b/keyboards/ergodox_ez/ergodox_ez.c @@ -335,6 +335,9 @@ led_config_t g_led_config = { { # ifdef ORYX_CONFIGURATOR void keyboard_post_init_kb(void) { + if (rgb_matrix_get_mode() >= RGB_MATRIX_EFFECT_MAX) { + rgb_matrix_mode(RGB_MATRIX_NONE); + } rgb_matrix_enable_noeeprom(); keyboard_post_init_user(); }