|
@@ -1165,7 +1165,12 @@ void refresh_cmd_timeout(void)
|
1165
|
1165
|
retracted[active_extruder]=true;
|
1166
|
1166
|
prepare_move();
|
1167
|
1167
|
current_position[Z_AXIS]-=retract_zlift;
|
|
1168
|
+#ifdef DELTA
|
|
1169
|
+ calculate_delta(current_position); // change cartesian kinematic to delta kinematic;
|
|
1170
|
+ plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);
|
|
1171
|
+#else
|
1168
|
1172
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1173
|
+#endif
|
1169
|
1174
|
prepare_move();
|
1170
|
1175
|
feedrate = oldFeedrate;
|
1171
|
1176
|
} else if(!retracting && retracted[active_extruder]) {
|
|
@@ -1174,7 +1179,12 @@ void refresh_cmd_timeout(void)
|
1174
|
1179
|
destination[Z_AXIS]=current_position[Z_AXIS];
|
1175
|
1180
|
destination[E_AXIS]=current_position[E_AXIS];
|
1176
|
1181
|
current_position[Z_AXIS]+=retract_zlift;
|
|
1182
|
+#ifdef DELTA
|
|
1183
|
+ calculate_delta(current_position); // change cartesian kinematic to delta kinematic;
|
|
1184
|
+ plan_set_position(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);
|
|
1185
|
+#else
|
1177
|
1186
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1187
|
+#endif
|
1178
|
1188
|
//prepare_move();
|
1179
|
1189
|
if (swapretract) {
|
1180
|
1190
|
current_position[E_AXIS]-=(retract_length_swap+retract_recover_length_swap)/volumetric_multiplier[active_extruder];
|