fix heatedBed

@companje
This commit is contained in:
Casper Lamboo 2018-03-15 14:25:53 +01:00
parent 991586dc4c
commit f65ab470bb

View File

@ -127,11 +127,11 @@ export default class GCode {
return this;
}
addGCode(gcode, { temperature, bedTemperature, heatedbed }) {
addGCode(gcode, { temperature, bedTemperature, heatedBed }) {
gcode = gcode
.replace(/{temperature}/gi, temperature)
.replace(/{bedTemperature}/gi, bedTemperature)
.replace(/{if heatedBed}/gi, heatedbed ? '' : ';');
.replace(/{if heatedBed}/gi, heatedBed ? '' : ';');
this._addGCode(gcode);
}