|
@@ -33,6 +33,10 @@
|
33
|
33
|
#include "../module/stepper/indirection.h"
|
34
|
34
|
#include "../MarlinCore.h"
|
35
|
35
|
|
|
36
|
+#if ENABLED(PS_OFF_SOUND)
|
|
37
|
+ #include "../libs/buzzer.h"
|
|
38
|
+#endif
|
|
39
|
+
|
36
|
40
|
#if defined(PSU_POWERUP_GCODE) || defined(PSU_POWEROFF_GCODE)
|
37
|
41
|
#include "../gcode/gcode.h"
|
38
|
42
|
#endif
|
|
@@ -133,6 +137,11 @@ void Power::power_off() {
|
133
|
137
|
#ifdef PSU_POWEROFF_GCODE
|
134
|
138
|
GcodeSuite::process_subcommands_now_P(PSTR(PSU_POWEROFF_GCODE));
|
135
|
139
|
#endif
|
|
140
|
+
|
|
141
|
+ #if ENABLED(PS_OFF_SOUND)
|
|
142
|
+ BUZZ(1000, 659);
|
|
143
|
+ #endif
|
|
144
|
+
|
136
|
145
|
PSU_PIN_OFF();
|
137
|
146
|
}
|
138
|
147
|
}
|