Browse Source

Make G11 not horribly broken

pull/1/head
whosawhatsis 11 years ago
parent
commit
c79e3967b3
  1. 7
      Marlin/Marlin_main.cpp

7
Marlin/Marlin_main.cpp

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

Loading…
Cancel
Save