Browse Source

Merge pull request #3616 from thinkyhead/rc_fixup_some_movement

General cleanup around high level move functions
Scott Lahteine 8 years ago
parent
commit
ec82e1e05d
1 changed files with 6 additions and 14 deletions
  1. 6
    14
      Marlin/Marlin_main.cpp

+ 6
- 14
Marlin/Marlin_main.cpp View File

@@ -2343,7 +2343,6 @@ static void homeaxis(AxisEnum axis) {
2343 2343
         #else
2344 2344
           sync_plan_position();
2345 2345
         #endif
2346
-        //prepare_move();
2347 2346
       }
2348 2347
 
2349 2348
       feedrate = retract_recover_feedrate * 60;
@@ -7328,12 +7327,8 @@ void mesh_plan_buffer_line(float x, float y, float z, const float e, float feed_
7328 7327
         adjust_delta(target);
7329 7328
       #endif
7330 7329
 
7331
-      //SERIAL_ECHOPGM("target[X_AXIS]="); SERIAL_ECHOLN(target[X_AXIS]);
7332
-      //SERIAL_ECHOPGM("target[Y_AXIS]="); SERIAL_ECHOLN(target[Y_AXIS]);
7333
-      //SERIAL_ECHOPGM("target[Z_AXIS]="); SERIAL_ECHOLN(target[Z_AXIS]);
7334
-      //SERIAL_ECHOPGM("delta[X_AXIS]="); SERIAL_ECHOLN(delta[X_AXIS]);
7335
-      //SERIAL_ECHOPGM("delta[Y_AXIS]="); SERIAL_ECHOLN(delta[Y_AXIS]);
7336
-      //SERIAL_ECHOPGM("delta[Z_AXIS]="); SERIAL_ECHOLN(delta[Z_AXIS]);
7330
+      //DEBUG_POS("prepare_move_delta", target);
7331
+      //DEBUG_POS("prepare_move_delta", delta);
7337 7332
 
7338 7333
       plan_buffer_line(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], target[E_AXIS], feedrate / 60 * feedrate_multiplier / 100.0, active_extruder);
7339 7334
     }
@@ -7423,13 +7418,10 @@ void prepare_move() {
7423 7418
     if (!prepare_move_scara(destination)) return;
7424 7419
   #elif ENABLED(DELTA)
7425 7420
     if (!prepare_move_delta(destination)) return;
7426
-  #endif
7427
-
7428
-  #if ENABLED(DUAL_X_CARRIAGE)
7429
-    if (!prepare_move_dual_x_carriage()) return;
7430
-  #endif
7431
-
7432
-  #if DISABLED(DELTA) && DISABLED(SCARA)
7421
+  #else
7422
+    #if ENABLED(DUAL_X_CARRIAGE)
7423
+      if (!prepare_move_dual_x_carriage()) return;
7424
+    #endif
7433 7425
     if (!prepare_move_cartesian()) return;
7434 7426
   #endif
7435 7427
 

Loading…
Cancel
Save