Make G11 not horribly broken

This commit is contained in:
whosawhatsis 2013-10-24 18:58:42 -07:00
parent 5b8b939a1f
commit c79e3967b3

View File

@ -1072,15 +1072,14 @@ void process_commands()
}
break;
case 11: // G10 retract_recover
if(!retracted)
case 11: // G11 retract_recover
if(retracted)
{
destination[X_AXIS]=current_position[X_AXIS];
destination[Y_AXIS]=current_position[Y_AXIS];
destination[Z_AXIS]=current_position[Z_AXIS];
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;
retracted=false;
prepare_move();