Skip to content

Commit

Permalink
🎨 Power-off tone followup (#22222)
Browse files Browse the repository at this point in the history
  • Loading branch information
cytown authored and thinkyhead committed Jul 17, 2021
1 parent 42eb234 commit 165ae13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Marlin/src/feature/power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -148,6 +152,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();
}
}
Expand Down

0 comments on commit 165ae13

Please sign in to comment.