Bugfix: an awful _BRIDGE_FAN_END string was sometimes left in the output. #245
This commit is contained in:
parent
2ff3ab1faf
commit
c7006fed26
2 changed files with 6 additions and 8 deletions
|
@ -307,7 +307,7 @@ sub _Gx {
|
|||
my $append_bridge_off = 0;
|
||||
if ($speed ne $self->last_speed) {
|
||||
if ($speed eq 'bridge') {
|
||||
$gcode = "_BRIDGE_FAN_START\n$gcode";
|
||||
$gcode = ";_BRIDGE_FAN_START\n$gcode";
|
||||
} elsif ($self->last_speed eq 'bridge') {
|
||||
$append_bridge_off = 1;
|
||||
}
|
||||
|
@ -325,7 +325,7 @@ sub _Gx {
|
|||
|
||||
$gcode .= sprintf " ; %s", $comment if $comment && $Slic3r::gcode_comments;
|
||||
if ($append_bridge_off) {
|
||||
$gcode .= "\n_BRIDGE_FAN_END";
|
||||
$gcode .= "\n;_BRIDGE_FAN_END";
|
||||
}
|
||||
return "$gcode\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue