forked from mirror/qmk_firmware
Align sleep_led logic (#25395)
This commit is contained in:
@@ -28,7 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "action_layer.h"
|
||||
#include "action_util.h"
|
||||
#include "eeconfig.h"
|
||||
#include "sleep_led.h"
|
||||
#include "led.h"
|
||||
#include "command.h"
|
||||
#include "quantum.h"
|
||||
@@ -39,6 +38,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# include "backlight.h"
|
||||
#endif
|
||||
|
||||
#ifdef SLEEP_LED_ENABLE
|
||||
# include "sleep_led.h"
|
||||
#endif
|
||||
|
||||
#if defined(MOUSEKEY_ENABLE)
|
||||
# include "mousekey.h"
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
#include "quantum.h"
|
||||
#include "process_quantum.h"
|
||||
|
||||
#ifdef SLEEP_LED_ENABLE
|
||||
# include "sleep_led.h"
|
||||
#endif
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
# include "process_backlight.h"
|
||||
#endif
|
||||
@@ -487,6 +491,10 @@ void suspend_power_down_quantum(void) {
|
||||
backlight_level_noeeprom(0);
|
||||
# endif
|
||||
|
||||
# ifdef SLEEP_LED_ENABLE
|
||||
sleep_led_enable();
|
||||
# endif
|
||||
|
||||
# ifdef LED_MATRIX_ENABLE
|
||||
led_matrix_task();
|
||||
# endif
|
||||
@@ -533,6 +541,10 @@ __attribute__((weak)) void suspend_wakeup_init_quantum(void) {
|
||||
backlight_init();
|
||||
#endif
|
||||
|
||||
#ifdef SLEEP_LED_ENABLE
|
||||
sleep_led_disable();
|
||||
#endif
|
||||
|
||||
// Restore LED indicators
|
||||
led_wakeup();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user