Make G11 not horribly broken
This commit is contained in:
parent
5b8b939a1f
commit
c79e3967b3
|
@ -1072,15 +1072,14 @@ void process_commands()
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 11: // G10 retract_recover
|
case 11: // G11 retract_recover
|
||||||
if(!retracted)
|
if(retracted)
|
||||||
{
|
{
|
||||||
destination[X_AXIS]=current_position[X_AXIS];
|
destination[X_AXIS]=current_position[X_AXIS];
|
||||||
destination[Y_AXIS]=current_position[Y_AXIS];
|
destination[Y_AXIS]=current_position[Y_AXIS];
|
||||||
destination[Z_AXIS]=current_position[Z_AXIS];
|
destination[Z_AXIS]=current_position[Z_AXIS];
|
||||||
|
|
||||||
current_position[Z_AXIS]+=retract_zlift;
|
current_position[Z_AXIS]+=retract_zlift;
|
||||||
current_position[E_AXIS]+=-retract_recover_length;
|
destination[E_AXIS]=current_position[E_AXIS]+retract_length+retract_recover_length;
|
||||||
feedrate=retract_recover_feedrate;
|
feedrate=retract_recover_feedrate;
|
||||||
retracted=false;
|
retracted=false;
|
||||||
prepare_move();
|
prepare_move();
|
||||||
|
|
Loading…
Reference in a new issue