|
@@ -260,15 +260,17 @@ bool home_delta() {
|
260
|
260
|
line_to_current_position();
|
261
|
261
|
stepper.synchronize();
|
262
|
262
|
|
|
263
|
+ // Re-enable stealthChop if used. Disable diag1 pin on driver.
|
|
264
|
+ #if ENABLED(SENSORLESS_HOMING)
|
|
265
|
+ delta_sensorless_homing(false);
|
|
266
|
+ #endif
|
|
267
|
+
|
263
|
268
|
// If an endstop was not hit, then damage can occur if homing is continued.
|
264
|
269
|
// This can occur if the delta height not set correctly.
|
265
|
270
|
if (!(Endstops::endstop_hit_bits & (_BV(X_MAX) | _BV(Y_MAX) | _BV(Z_MAX)))) {
|
266
|
271
|
LCD_MESSAGEPGM(MSG_ERR_HOMING_FAILED);
|
267
|
272
|
SERIAL_ERROR_START();
|
268
|
273
|
SERIAL_ERRORLNPGM(MSG_ERR_HOMING_FAILED);
|
269
|
|
- #if ENABLED(SENSORLESS_HOMING)
|
270
|
|
- delta_sensorless_homing(false);
|
271
|
|
- #endif
|
272
|
274
|
return false;
|
273
|
275
|
}
|
274
|
276
|
|
|
@@ -280,11 +282,6 @@ bool home_delta() {
|
280
|
282
|
HOMEAXIS(B);
|
281
|
283
|
HOMEAXIS(C);
|
282
|
284
|
|
283
|
|
- // Re-enable stealthChop if used. Disable diag1 pin on driver.
|
284
|
|
- #if ENABLED(SENSORLESS_HOMING)
|
285
|
|
- delta_sensorless_homing(false);
|
286
|
|
- #endif
|
287
|
|
-
|
288
|
285
|
// Set all carriages to their home positions
|
289
|
286
|
// Do this here all at once for Delta, because
|
290
|
287
|
// XYZ isn't ABC. Applying this per-tower would
|