From d3002ef741400c156f3afa26e436da3e3de13664 Mon Sep 17 00:00:00 2001 From: Bernhard Date: Sun, 3 Jun 2012 16:56:40 +0200 Subject: [PATCH] corrected retract --- Marlin/Marlin.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde index 78eba6870..2bba4222d 100644 --- a/Marlin/Marlin.pde +++ b/Marlin/Marlin.pde @@ -1489,7 +1489,7 @@ void get_coordinates() //if slicer retracted by echange=-1mm and you want to retract 3mm, corrrectede=-2mm additionally float correctede=-echange-retract_length; //to generate the additional steps, not the destination is changed, but inversely the current position - destination[E_AXIS]+=correctede; + current_position[E_AXIS]+=-correctede; feedrate=retract_feedrate; retracted=true; } @@ -1502,8 +1502,8 @@ void get_coordinates() { //current_position[Z_AXIS]+=-retract_zlift; //if slicer retracted_recovered by echange=+1mm and you want to retract_recover 3mm, corrrectede=2mm additionally - float correctede=-echange+0*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus] - current_position[E_AXIS]+=-correctede; //to generate the additional steps, not the destination is changed, but inversely the current position + float correctede=-echange+1*retract_length+retract_recover_length; //total unretract=retract_length+retract_recover_length[surplus] + current_position[E_AXIS]+=correctede; //to generate the additional steps, not the destination is changed, but inversely the current position feedrate=retract_recover_feedrate; retracted=false; }