Browse Source

Clear sensorless homing in home_delta after first move-to-top

Scott Lahteine 7 years ago
parent
commit
8b7381b626
1 changed files with 5 additions and 8 deletions
  1. 5
    8
      Marlin/src/module/delta.cpp

+ 5
- 8
Marlin/src/module/delta.cpp View File

260
   line_to_current_position();
260
   line_to_current_position();
261
   stepper.synchronize();
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
   // If an endstop was not hit, then damage can occur if homing is continued.
268
   // If an endstop was not hit, then damage can occur if homing is continued.
264
   // This can occur if the delta height not set correctly.
269
   // This can occur if the delta height not set correctly.
265
   if (!(Endstops::endstop_hit_bits & (_BV(X_MAX) | _BV(Y_MAX) | _BV(Z_MAX)))) {
270
   if (!(Endstops::endstop_hit_bits & (_BV(X_MAX) | _BV(Y_MAX) | _BV(Z_MAX)))) {
266
     LCD_MESSAGEPGM(MSG_ERR_HOMING_FAILED);
271
     LCD_MESSAGEPGM(MSG_ERR_HOMING_FAILED);
267
     SERIAL_ERROR_START();
272
     SERIAL_ERROR_START();
268
     SERIAL_ERRORLNPGM(MSG_ERR_HOMING_FAILED);
273
     SERIAL_ERRORLNPGM(MSG_ERR_HOMING_FAILED);
269
-    #if ENABLED(SENSORLESS_HOMING)
270
-      delta_sensorless_homing(false);
271
-    #endif
272
     return false;
274
     return false;
273
   }
275
   }
274
 
276
 
280
   HOMEAXIS(B);
282
   HOMEAXIS(B);
281
   HOMEAXIS(C);
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
   // Set all carriages to their home positions
285
   // Set all carriages to their home positions
289
   // Do this here all at once for Delta, because
286
   // Do this here all at once for Delta, because
290
   // XYZ isn't ABC. Applying this per-tower would
287
   // XYZ isn't ABC. Applying this per-tower would

Loading…
Cancel
Save