Browse Source

Merge pull request #629 from whosawhatsis/Marlin_v1

Make G11 not horribly broken
Bernhard Kubicek 11 years ago
parent
commit
47854ff5ce
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      Marlin/Marlin_main.cpp

+ 3
- 4
Marlin/Marlin_main.cpp View File

@@ -1072,15 +1072,14 @@ void process_commands()
1072 1072
       }
1073 1073
 
1074 1074
       break;
1075
-      case 11: // G10 retract_recover
1076
-      if(!retracted)
1075
+      case 11: // G11 retract_recover
1076
+      if(retracted)
1077 1077
       {
1078 1078
         destination[X_AXIS]=current_position[X_AXIS];
1079 1079
         destination[Y_AXIS]=current_position[Y_AXIS];
1080 1080
         destination[Z_AXIS]=current_position[Z_AXIS];
1081
-
1082 1081
         current_position[Z_AXIS]+=retract_zlift;
1083
-        current_position[E_AXIS]+=-retract_recover_length;
1082
+        destination[E_AXIS]=current_position[E_AXIS]+retract_length+retract_recover_length; 
1084 1083
         feedrate=retract_recover_feedrate;
1085 1084
         retracted=false;
1086 1085
         prepare_move();

Loading…
Cancel
Save