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

This commit is contained in:
Scott Lahteine
2018-06-30 21:53:58 -05:00
committed by GitHub
parent c4fbbcaf46
commit defaa93121
3 changed files with 20 additions and 23 deletions

View File

@@ -229,6 +229,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) {