|
@@ -1132,7 +1132,12 @@ void refresh_cmd_timeout(void)
|
1132
|
1132
|
retracted=true;
|
1133
|
1133
|
prepare_move();
|
1134
|
1134
|
current_position[Z_AXIS]-=retract_zlift;
|
|
1135
|
+#ifdef DELTA
|
|
1136
|
+ calculate_delta(current_position); // change cartesian kinematic to delta kinematic;
|
|
1137
|
+ plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);
|
|
1138
|
+#else
|
1135
|
1139
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1140
|
+#endif
|
1136
|
1141
|
prepare_move();
|
1137
|
1142
|
feedrate = oldFeedrate;
|
1138
|
1143
|
} else if(!retracting && retracted) {
|
|
@@ -1141,7 +1146,12 @@ void refresh_cmd_timeout(void)
|
1141
|
1146
|
destination[Z_AXIS]=current_position[Z_AXIS];
|
1142
|
1147
|
destination[E_AXIS]=current_position[E_AXIS];
|
1143
|
1148
|
current_position[Z_AXIS]+=retract_zlift;
|
|
1149
|
+#ifdef DELTA
|
|
1150
|
+ calculate_delta(current_position); // change cartesian kinematic to delta kinematic;
|
|
1151
|
+ plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);
|
|
1152
|
+#else
|
1144
|
1153
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1154
|
+#endif
|
1145
|
1155
|
//prepare_move();
|
1146
|
1156
|
current_position[E_AXIS]-=(retract_length+retract_recover_length)/volumetric_multiplier[active_extruder];
|
1147
|
1157
|
plan_set_e_position(current_position[E_AXIS]);
|