Browse Source

Merge pull request #866 from sakunamary/Marlin_v1

fix bug for dual extruders not working
nothinman 11 years ago
parent
commit
9a5d23d96f
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/Marlin_main.cpp

+ 9
- 0
Marlin/Marlin_main.cpp View File

3049
         // Set the new active extruder and position
3049
         // Set the new active extruder and position
3050
         active_extruder = tmp_extruder;
3050
         active_extruder = tmp_extruder;
3051
       #endif //else DUAL_X_CARRIAGE
3051
       #endif //else DUAL_X_CARRIAGE
3052
+#ifdef DELTA 
3053
+
3054
+  calculate_delta(current_position); // change cartesian kinematic  to  delta kinematic;
3055
+   //sent position to plan_set_position();
3056
+  plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS],current_position[E_AXIS]);
3057
+            
3058
+#else
3052
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3059
         plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
3060
+
3061
+#endif
3053
         // Move to the old position if 'F' was in the parameters
3062
         // Move to the old position if 'F' was in the parameters
3054
         if(make_move && Stopped == false) {
3063
         if(make_move && Stopped == false) {
3055
            prepare_move();
3064
            prepare_move();

Loading…
Cancel
Save