mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
fix heatedBed
@companje
This commit is contained in:
parent
991586dc4c
commit
f65ab470bb
@ -127,11 +127,11 @@ export default class GCode {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
addGCode(gcode, { temperature, bedTemperature, heatedbed }) {
|
addGCode(gcode, { temperature, bedTemperature, heatedBed }) {
|
||||||
gcode = gcode
|
gcode = gcode
|
||||||
.replace(/{temperature}/gi, temperature)
|
.replace(/{temperature}/gi, temperature)
|
||||||
.replace(/{bedTemperature}/gi, bedTemperature)
|
.replace(/{bedTemperature}/gi, bedTemperature)
|
||||||
.replace(/{if heatedBed}/gi, heatedbed ? '' : ';');
|
.replace(/{if heatedBed}/gi, heatedBed ? '' : ';');
|
||||||
|
|
||||||
this._addGCode(gcode);
|
this._addGCode(gcode);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user