Merge pull request #795 from 3d-gussner/MK3_fix5

Fix warning: This is kind of important
This commit is contained in:
PavelSindler 2018-06-07 22:22:54 +02:00 committed by GitHub
commit 877f8f2a61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3291,10 +3291,10 @@ void process_commands()
if( !(code_seen('X') || code_seen('Y') || code_seen('Z')) && code_seen('E')) {
float echange=destination[E_AXIS]-current_position[E_AXIS];
if((echange<-MIN_RETRACT && !retracted) || (echange>MIN_RETRACT && retracted)) { //move appears to be an attempt to retract or recover
if((echange<-MIN_RETRACT && !retracted[active_extruder]) || (echange>MIN_RETRACT && retracted[active_extruder])) { //move appears to be an attempt to retract or recover
current_position[E_AXIS] = destination[E_AXIS]; //hide the slicer-generated retract/recover from calculations
plan_set_e_position(current_position[E_AXIS]); //AND from the planner
retract(!retracted);
retract(!retracted[active_extruder]);
return;
}