fix: shutdown all leds before suspend

This commit is contained in:
Florian Didron
2019-08-15 15:07:48 +09:00
committed by Florian Didron
parent a587846d97
commit 7215cb932b
2 changed files with 2 additions and 0 deletions

View File

@@ -222,6 +222,7 @@ const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void) {
rgb_matrix_set_color_all(0, 0, 0);
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}