mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-03-15 10:46:18 +00:00
🎨 Power-off tone followup (#22222)
This commit is contained in:
parent
500b7872fb
commit
f399706911
2 changed files with 9 additions and 4 deletions
|
@ -33,6 +33,10 @@
|
|||
#include "../module/stepper/indirection.h"
|
||||
#include "../MarlinCore.h"
|
||||
|
||||
#if ENABLED(PS_OFF_SOUND)
|
||||
#include "../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
#if defined(PSU_POWERUP_GCODE) || defined(PSU_POWEROFF_GCODE)
|
||||
#include "../gcode/gcode.h"
|
||||
#endif
|
||||
|
@ -133,6 +137,11 @@ void Power::power_off() {
|
|||
#ifdef PSU_POWEROFF_GCODE
|
||||
GcodeSuite::process_subcommands_now_P(PSTR(PSU_POWEROFF_GCODE));
|
||||
#endif
|
||||
|
||||
#if ENABLED(PS_OFF_SOUND)
|
||||
BUZZ(1000, 659);
|
||||
#endif
|
||||
|
||||
PSU_PIN_OFF();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,10 +101,6 @@ void GcodeSuite::M81() {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(PS_OFF_SOUND)
|
||||
BUZZ(1000, 659);
|
||||
#endif
|
||||
|
||||
safe_delay(1000); // Wait 1 second before switching off
|
||||
|
||||
#if HAS_SUICIDE
|
||||
|
|
Loading…
Add table
Reference in a new issue