✨ SOUND_ON_DEFAULT option (#24102)
This commit is contained in:
committed by
Scott Lahteine
parent
b2b5b85045
commit
3443a9e18b
@@ -173,7 +173,7 @@
|
||||
#include "tool_change.h"
|
||||
#endif
|
||||
|
||||
#if USE_BEEPER
|
||||
#if HAS_BEEPER
|
||||
#include "../libs/buzzer.h"
|
||||
#endif
|
||||
|
||||
@@ -986,18 +986,14 @@ int16_t Temperature::getHeaterPower(const heater_id_t heater_id) {
|
||||
inline void loud_kill(FSTR_P const lcd_msg, const heater_id_t heater_id) {
|
||||
marlin_state = MF_KILLED;
|
||||
thermalManager.disable_all_heaters();
|
||||
#if USE_BEEPER
|
||||
#if HAS_BEEPER
|
||||
for (uint8_t i = 20; i--;) {
|
||||
WRITE(BEEPER_PIN, HIGH);
|
||||
delay(25);
|
||||
watchdog_refresh();
|
||||
WRITE(BEEPER_PIN, LOW);
|
||||
delay(40);
|
||||
watchdog_refresh();
|
||||
delay(40);
|
||||
buzzer.click(25);
|
||||
delay(80);
|
||||
watchdog_refresh();
|
||||
}
|
||||
WRITE(BEEPER_PIN, HIGH);
|
||||
buzzer.on();
|
||||
#endif
|
||||
#if ENABLED(NOZZLE_PARK_FEATURE)
|
||||
if (!homing_needed_error()) {
|
||||
|
Reference in New Issue
Block a user