Avoid G92 E0 with sailfish. #1034

This commit is contained in:
Alessandro Ranellucci 2013-07-29 13:49:53 +02:00
parent 80676f358a
commit 9adac636b8

View file

@ -532,7 +532,7 @@ sub unretract {
sub reset_e {
my $self = shift;
return "" if $self->config->gcode_flavor =~ /^(?:mach3|makerware)$/;
return "" if $self->config->gcode_flavor =~ /^(?:mach3|makerware|sailfish)$/;
$self->extruder->e(0) if $self->extruder;
return sprintf "G92 %s0%s\n", $self->config->extrusion_axis, ($self->config->gcode_comments ? ' ; reset extrusion distance' : '')