1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-18 00:07:50 +00:00

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; 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();