Add missing LED Matrix suspend code to suspend.c (#12878)
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
d200e3de8e
commit
da0c551692
@ -163,6 +163,9 @@ void suspend_power_down(void) {
|
|||||||
rgblight_suspend();
|
rgblight_suspend();
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# if defined(LED_MATRIX_ENABLE)
|
||||||
|
led_matrix_set_suspend_state(true);
|
||||||
|
# endif
|
||||||
# if defined(RGB_MATRIX_ENABLE)
|
# if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
# endif
|
# endif
|
||||||
@ -218,6 +221,10 @@ void suspend_wakeup_init(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_wakeup();
|
rgblight_wakeup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(LED_MATRIX_ENABLE)
|
||||||
|
led_matrix_set_suspend_state(false);
|
||||||
|
#endif
|
||||||
#if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
#endif
|
#endif
|
||||||
|
@ -83,6 +83,10 @@ void suspend_power_down(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_suspend();
|
rgblight_suspend();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(LED_MATRIX_ENABLE)
|
||||||
|
led_matrix_set_suspend_state(true);
|
||||||
|
#endif
|
||||||
#if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(true);
|
rgb_matrix_set_suspend_state(true);
|
||||||
#endif
|
#endif
|
||||||
@ -154,6 +158,10 @@ void suspend_wakeup_init(void) {
|
|||||||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
|
||||||
rgblight_wakeup();
|
rgblight_wakeup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(LED_MATRIX_ENABLE)
|
||||||
|
led_matrix_set_suspend_state(false);
|
||||||
|
#endif
|
||||||
#if defined(RGB_MATRIX_ENABLE)
|
#if defined(RGB_MATRIX_ENABLE)
|
||||||
rgb_matrix_set_suspend_state(false);
|
rgb_matrix_set_suspend_state(false);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user