Переглянути джерело

Merge pull request #4133 from MagoKimbra/Single_home_axis_delta

Single home Axis Delta need simple sync_plan_position
Scott Lahteine 9 роки тому
джерело
коміт
7de7552069
1 змінених файлів з 4 додано та 4 видалено
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp Переглянути файл

@@ -2334,7 +2334,7 @@ static void homeaxis(AxisEnum axis) {
2334 2334
 
2335 2335
     // Set the axis position as setup for the move
2336 2336
     current_position[axis] = 0;
2337
-    SYNC_PLAN_POSITION_KINEMATIC();
2337
+    sync_plan_position();
2338 2338
 
2339 2339
     // Homing Z towards the bed? Deploy the Z probe or endstop.
2340 2340
     #if HAS_BED_PROBE
@@ -2359,7 +2359,7 @@ static void homeaxis(AxisEnum axis) {
2359 2359
 
2360 2360
     // Set the axis position as setup for the move
2361 2361
     current_position[axis] = 0;
2362
-    SYNC_PLAN_POSITION_KINEMATIC();
2362
+    sync_plan_position();
2363 2363
 
2364 2364
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2365 2365
       if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
@@ -2400,7 +2400,7 @@ static void homeaxis(AxisEnum axis) {
2400 2400
           lockZ1 = (z_endstop_adj < 0);
2401 2401
 
2402 2402
         if (lockZ1) stepper.set_z_lock(true); else stepper.set_z2_lock(true);
2403
-        SYNC_PLAN_POSITION_KINEMATIC();
2403
+        sync_plan_position();
2404 2404
 
2405 2405
         // Move to the adjusted endstop height
2406 2406
         feedrate = homing_feedrate[axis];
@@ -2420,7 +2420,7 @@ static void homeaxis(AxisEnum axis) {
2420 2420
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> endstops.enable(false)");
2421 2421
         #endif
2422 2422
         endstops.enable(false); // Disable endstops while moving away
2423
-        SYNC_PLAN_POSITION_KINEMATIC();
2423
+        sync_plan_position();
2424 2424
         destination[axis] = endstop_adj[axis];
2425 2425
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2426 2426
           if (DEBUGGING(LEVELING)) {

Завантаження…
Відмінити
Зберегти