Fixed typos in bed temperature M-codes. #386

This commit is contained in:
Alessandro Ranellucci 2012-05-29 09:40:42 +02:00
parent bc4b4a981b
commit 4db416773c

View File

@ -395,8 +395,8 @@ sub set_bed_temperature {
my ($temperature, $wait) = @_; my ($temperature, $wait) = @_;
my ($code, $comment) = $wait my ($code, $comment) = $wait
? (($Slic3r::gcode_flavor eq 'makerbot' ? '109' : '190'), 'wait for bed temperature to be reached') ? (($Slic3r::gcode_flavor eq 'makerbot' ? 'M109' : 'M190'), 'wait for bed temperature to be reached')
: ('M40', 'set bed temperature'); : ('M140', 'set bed temperature');
return sprintf "$code %s%d ; $comment\n", return sprintf "$code %s%d ; $comment\n",
($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $temperature; ($Slic3r::gcode_flavor eq 'mach3' ? 'P' : 'S'), $temperature;
} }