Fixed regression causing retraction to be skipped when Retract Length was 0 but Use Firmware Retraction was enabled. Includes regression test. #2359

This commit is contained in:
Alessandro Ranellucci 2014-11-23 19:28:18 +01:00
parent a1193d28bc
commit 60a76b8cfa
3 changed files with 26 additions and 2 deletions

View file

@ -393,7 +393,7 @@ sub retract {
$gcode .= $self->writer->reset_e;
$gcode .= $self->writer->lift
if $self->writer->extruder->retract_length > 0;
if $self->writer->extruder->retract_length > 0 || $self->config->use_firmware_retraction;
return $gcode;
}