Merge pull request #1068 from PavelSindler/M600_fix

M600 fix: remove unretract
This commit is contained in:
PavelSindler 2018-08-25 20:02:30 +02:00 committed by GitHub
commit cf83852d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3139,11 +3139,6 @@ void gcode_M600(bool automatic, float x_position, float y_position, float z_shif
//Move Z back //Move Z back
plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_ZFEED, active_extruder); plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_ZFEED, active_extruder);
st_synchronize(); st_synchronize();
//Unretract
current_position[E_AXIS]= current_position[E_AXIS] - e_shift;
plan_buffer_line(lastpos[X_AXIS], lastpos[Y_AXIS], lastpos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_RFEED, active_extruder);
st_synchronize();
//Set E position to original //Set E position to original
plan_set_e_position(lastpos[E_AXIS]); plan_set_e_position(lastpos[E_AXIS]);