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; 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);
} }