diff options
Diffstat (limited to 'tmk_core/common/chibios/suspend.c')
-rw-r--r-- | tmk_core/common/chibios/suspend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/common/chibios/suspend.c b/tmk_core/common/chibios/suspend.c index 796056019..49e20641f 100644 --- a/tmk_core/common/chibios/suspend.c +++ b/tmk_core/common/chibios/suspend.c | |||
@@ -12,6 +12,10 @@ | |||
12 | #include "led.h" | 12 | #include "led.h" |
13 | #include "wait.h" | 13 | #include "wait.h" |
14 | 14 | ||
15 | #ifdef AUDIO_ENABLE | ||
16 | # include "audio.h" | ||
17 | #endif /* AUDIO_ENABLE */ | ||
18 | |||
15 | #ifdef BACKLIGHT_ENABLE | 19 | #ifdef BACKLIGHT_ENABLE |
16 | # include "backlight.h" | 20 | # include "backlight.h" |
17 | #endif | 21 | #endif |
@@ -65,6 +69,9 @@ void suspend_power_down(void) { | |||
65 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) | 69 | #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |
66 | rgblight_suspend(); | 70 | rgblight_suspend(); |
67 | #endif | 71 | #endif |
72 | #ifdef AUDIO_ENABLE | ||
73 | stop_all_notes(); | ||
74 | #endif /* AUDIO_ENABLE */ | ||
68 | 75 | ||
69 | suspend_power_down_kb(); | 76 | suspend_power_down_kb(); |
70 | // on AVR, this enables the watchdog for 15ms (max), and goes to | 77 | // on AVR, this enables the watchdog for 15ms (max), and goes to |