diff options
| author | Joel Challis | 2025-06-27 09:17:28 +0200 |
|---|---|---|
| committer | GitHub | 2025-06-27 09:17:28 +0200 |
| commit | bc5c5e3251d019f3e070d7ea9e5c77501b25738d (patch) | |
| tree | d97835b76f900f05e41d6a9b24f68c6f16bc0892 /quantum/quantum.c | |
| parent | f39e08e2baa14bd6e1031a64d1e879f450fb2fd7 (diff) | |
Align sleep_led logic (#25395)
Diffstat (limited to 'quantum/quantum.c')
| -rw-r--r-- | quantum/quantum.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index cc20c7db2b..09e5fe1dac 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -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(); |