mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-26 08:44:24 +08:00
Only output M109 if there's none in user-supplied start G-code
This commit is contained in:
parent
0afb5ad9dd
commit
13e573a8e4
@ -597,7 +597,8 @@ sub export_gcode {
|
|||||||
printf $fh "%s\n", Slic3r::Config->replace_options($Slic3r::start_gcode);
|
printf $fh "%s\n", Slic3r::Config->replace_options($Slic3r::start_gcode);
|
||||||
printf $fh "M109 %s%d ; wait for temperature to be reached\n",
|
printf $fh "M109 %s%d ; wait for temperature to be reached\n",
|
||||||
($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::first_layer_temperature
|
($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $Slic3r::first_layer_temperature
|
||||||
if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot';
|
if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot'
|
||||||
|
&& $Slic3r::start_gcode !~ /M109/i;
|
||||||
print $fh "G90 ; use absolute coordinates\n";
|
print $fh "G90 ; use absolute coordinates\n";
|
||||||
print $fh "G21 ; set units to millimeters\n";
|
print $fh "G21 ; set units to millimeters\n";
|
||||||
if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup)$/) {
|
if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup)$/) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user