🐛 Fix loud_kill heater disable (#23314)

This commit is contained in:
Robby Candra 2021-12-19 05:33:21 +07:00 committed by GitHub
parent b16b1d1fc7
commit b4727411d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -983,8 +983,8 @@ 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
thermalManager.disable_all_heaters();
for (uint8_t i = 20; i--;) {
WRITE(BEEPER_PIN, HIGH);
delay(25);