Skip to content

Commit

Permalink
fix: moonlander/ergodox out of bound animation mode when flashing a l…
Browse files Browse the repository at this point in the history
…ayout with less animations set
  • Loading branch information
fdidron committed Jul 12, 2024
1 parent b36861d commit e11c9a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keyboards/zsa/ergodox_ez/ergodox_ez.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ void keyboard_post_init_kb(void) {
keyboard_config.raw = eeconfig_read_kb();
ergodox_led_all_set((uint8_t)keyboard_config.led_level * 255 / 4);
ergodox_blink_all_leds();
# if defined(RGB_MATRIX_ENABLE)
if (rgb_matrix_get_mode() >= RGB_MATRIX_EFFECT_MAX) {
rgb_matrix_mode(RGB_MATRIX_NONE);
}
# endif

keyboard_post_init_user();
}
Expand Down
3 changes: 3 additions & 0 deletions keyboards/zsa/moonlander/moonlander.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ void keyboard_post_init_kb(void) {
eeconfig_update_kb(keyboard_config.raw);
}
#ifdef RGB_MATRIX_ENABLE
if (rgb_matrix_get_mode() >= RGB_MATRIX_EFFECT_MAX) {
rgb_matrix_mode(RGB_MATRIX_NONE);
}
rgb_matrix_enable_noeeprom();
#endif
#if defined(DEFERRED_EXEC_ENABLE)
Expand Down

0 comments on commit e11c9a1

Please sign in to comment.