Do a hard kill for failed homing moves (#11161)

This commit is contained in:
Scott Lahteine
2018-06-30 21:54:07 -05:00
committed by GitHub
parent 90ba77ea0f
commit c51e27d11d
8 changed files with 20 additions and 24 deletions

View File

@ -256,6 +256,12 @@ void Endstops::not_homing() {
#endif
}
// If the last move failed to trigger an endstop, call kill
void Endstops::validate_homing_move() {
if (!trigger_state()) kill(PSTR(MSG_ERR_HOMING_FAILED));
hit_on_purpose();
}
// Enable / disable endstop z-probe checking
#if HAS_BED_PROBE
void Endstops::enable_z_probe(const bool onoff) {