Browse Source

corrected retract

Bernhard 12 years ago
parent
commit
d3002ef741
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin.pde

+ 3
- 3
Marlin/Marlin.pde View File

@@ -1489,7 +1489,7 @@ void get_coordinates()
1489 1489
       //if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally
1490 1490
       float correctede=-echange-retract_length;
1491 1491
       //to generate the additional steps, not the destination is changed, but inversely the current position
1492
-      destination[E_AXIS]+=correctede; 
1492
+      current_position[E_AXIS]+=-correctede; 
1493 1493
       feedrate=retract_feedrate;
1494 1494
       retracted=true;
1495 1495
       }
@@ -1502,8 +1502,8 @@ void get_coordinates()
1502 1502
       {
1503 1503
       //current_position[Z_AXIS]+=-retract_zlift;
1504 1504
       //if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally
1505
-      float correctede=-echange+0*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus]
1506
-      current_position[E_AXIS]+=-correctede; //to generate the additional steps, not the destination is changed, but inversely the current position
1505
+      float correctede=-echange+1*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus]
1506
+      current_position[E_AXIS]+=correctede; //to generate the additional steps, not the destination is changed, but inversely the current position
1507 1507
       feedrate=retract_recover_feedrate;
1508 1508
       retracted=false;
1509 1509
       }

Loading…
Cancel
Save