Add a global machine state
This commit is contained in:
@ -765,7 +765,7 @@ int16_t Temperature::getHeaterPower(const heater_ind_t heater_id) {
|
||||
//
|
||||
|
||||
inline void loud_kill(PGM_P const lcd_msg, const heater_ind_t heater) {
|
||||
Running = false;
|
||||
marlin_state = MF_KILLED;
|
||||
#if USE_BEEPER
|
||||
for (uint8_t i = 20; i--;) {
|
||||
WRITE(BEEPER_PIN, HIGH); delay(25);
|
||||
@ -2003,7 +2003,7 @@ void Temperature::init() {
|
||||
|
||||
/**
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOPGM("Thermal Thermal Runaway Running. Heater ID: ");
|
||||
SERIAL_ECHOPGM("Thermal Runaway Running. Heater ID: ");
|
||||
if (heater_id == H_CHAMBER) SERIAL_ECHOPGM("chamber");
|
||||
if (heater_id < 0) SERIAL_ECHOPGM("bed"); else SERIAL_ECHO(heater_id);
|
||||
SERIAL_ECHOPAIR(" ; State:", sm.state, " ; Timer:", sm.timer, " ; Temperature:", current, " ; Target Temp:", target);
|
||||
|
Reference in New Issue
Block a user