Do a hard kill for failed homing moves (#11161)
This commit is contained in:
@ -72,7 +72,9 @@
|
||||
#endif
|
||||
|
||||
do_blocking_move_to_xy(1.5 * mlx * x_axis_home_dir, 1.5 * mly * home_dir(Y_AXIS), fr_mm_s);
|
||||
endstops.hit_on_purpose(); // clear endstop hit flags
|
||||
|
||||
endstops.validate_homing_move();
|
||||
|
||||
current_position[X_AXIS] = current_position[Y_AXIS] = 0.0;
|
||||
|
||||
#if ENABLED(SENSORLESS_HOMING)
|
||||
|
@ -72,12 +72,10 @@ enum CalEnum : char { // the 7 main calibration points -
|
||||
|
||||
float lcd_probe_pt(const float &rx, const float &ry);
|
||||
|
||||
bool ac_home() {
|
||||
void ac_home() {
|
||||
endstops.enable(true);
|
||||
if (!home_delta())
|
||||
return false;
|
||||
home_delta();
|
||||
endstops.not_homing();
|
||||
return true;
|
||||
}
|
||||
|
||||
void ac_setup(const bool reset_bed) {
|
||||
@ -530,8 +528,7 @@ void GcodeSuite::G33() {
|
||||
|
||||
ac_setup(!_0p_calibration && !_1p_calibration);
|
||||
|
||||
if (!_0p_calibration)
|
||||
if (!ac_home()) return;
|
||||
if (!_0p_calibration) ac_home();
|
||||
|
||||
do { // start iterations
|
||||
|
||||
@ -724,7 +721,7 @@ void GcodeSuite::G33() {
|
||||
sprintf_P(&mess[15], PSTR("%03i.x"), (int)round(zero_std_dev));
|
||||
lcd_setstatus(mess);
|
||||
}
|
||||
if (!ac_home()) return;
|
||||
ac_home();
|
||||
}
|
||||
while (((zero_std_dev < test_precision && iterations < 31) || iterations <= force_iterations) && zero_std_dev > calibration_precision);
|
||||
|
||||
|
Reference in New Issue
Block a user