|
@ -2030,14 +2030,26 @@ static void clean_up_after_endstop_or_probe_move() { |
|
|
set_bltouch_deployed(true); // Also needs to deploy and stow to
|
|
|
set_bltouch_deployed(true); // Also needs to deploy and stow to
|
|
|
set_bltouch_deployed(false); // clear the triggered condition.
|
|
|
set_bltouch_deployed(false); // clear the triggered condition.
|
|
|
if (TEST_BLTOUCH()) { // If it still claims to be triggered...
|
|
|
if (TEST_BLTOUCH()) { // If it still claims to be triggered...
|
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_STOP_BLTOUCH); |
|
|
stop(); // punt!
|
|
|
stop(); // punt!
|
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
#elif ENABLED(Z_PROBE_SLED) |
|
|
#elif ENABLED(Z_PROBE_SLED) |
|
|
if (axis_unhomed_error(true, false, false)) { stop(); return true; } |
|
|
if (axis_unhomed_error(true, false, false)) { |
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_STOP_UNHOMED); |
|
|
|
|
|
stop(); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
#elif ENABLED(Z_PROBE_ALLEN_KEY) |
|
|
#elif ENABLED(Z_PROBE_ALLEN_KEY) |
|
|
if (axis_unhomed_error(true, true, true )) { stop(); return true; } |
|
|
if (axis_unhomed_error(true, true, true )) { |
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_STOP_UNHOMED); |
|
|
|
|
|
stop(); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
const float oldXpos = current_position[X_AXIS], |
|
|
const float oldXpos = current_position[X_AXIS], |
|
@ -10298,7 +10310,11 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { |
|
|
|
|
|
|
|
|
millis_t ms = millis(); |
|
|
millis_t ms = millis(); |
|
|
|
|
|
|
|
|
if (max_inactive_time && ELAPSED(ms, previous_cmd_ms + max_inactive_time)) kill(PSTR(MSG_KILLED)); |
|
|
if (max_inactive_time && ELAPSED(ms, previous_cmd_ms + max_inactive_time)) { |
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ECHOLNPAIR(MSG_KILL_INACTIVE_TIME, current_command); |
|
|
|
|
|
kill(PSTR(MSG_KILLED)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Prevent steppers timing-out in the middle of M600
|
|
|
// Prevent steppers timing-out in the middle of M600
|
|
|
#if ENABLED(FILAMENT_CHANGE_FEATURE) && ENABLED(FILAMENT_CHANGE_NO_STEPPER_TIMEOUT) |
|
|
#if ENABLED(FILAMENT_CHANGE_FEATURE) && ENABLED(FILAMENT_CHANGE_NO_STEPPER_TIMEOUT) |
|
@ -10348,7 +10364,11 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) { |
|
|
// Exceeded threshold and we can confirm that it was not accidental
|
|
|
// Exceeded threshold and we can confirm that it was not accidental
|
|
|
// KILL the machine
|
|
|
// KILL the machine
|
|
|
// ----------------------------------------------------------------
|
|
|
// ----------------------------------------------------------------
|
|
|
if (killCount >= KILL_DELAY) kill(PSTR(MSG_KILLED)); |
|
|
if (killCount >= KILL_DELAY) { |
|
|
|
|
|
SERIAL_ERROR_START; |
|
|
|
|
|
SERIAL_ERRORLNPGM(MSG_KILL_BUTTON); |
|
|
|
|
|
kill(PSTR(MSG_KILLED)); |
|
|
|
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if HAS_HOME |
|
|
#if HAS_HOME |
|
|