1
0
Fork 0

Change RGB/LED Matrix to use a simple define for USB suspend (#12697)

This commit is contained in:
Drashna Jael're 2021-04-28 19:39:54 -07:00 committed by GitHub
parent 7409f03cbf
commit d8167779cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 62 additions and 53 deletions

View file

@ -163,6 +163,10 @@ void suspend_power_down(void) {
rgblight_suspend();
# endif
# if defined(RGB_MATRIX_ENABLE)
rgb_matrix_set_suspend_state(true);
# endif
// Enter sleep state if possible (ie, the MCU has a watchdog timeout interrupt)
# if defined(WDT_vect)
power_down(WDTO_15MS);
@ -214,6 +218,9 @@ void suspend_wakeup_init(void) {
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
rgblight_wakeup();
#endif
# if defined(RGB_MATRIX_ENABLE)
rgb_matrix_set_suspend_state(false);
# endif
suspend_wakeup_init_kb();
}