fix subsitute variables

This commit is contained in:
casperlamboo 2016-05-08 10:31:29 +02:00
parent 06c61a3cf6
commit ecce63f63c

View File

@ -46,13 +46,13 @@ export default class {
const heatedBedReplacement = heatedbed ? '' : ';';
gcode = gcode.replace(/{ printingTemp }/gi, temperature);
gcode = gcode.replace(/{ printingBedTemp }/gi, bedTemperature);
gcode = gcode.replace(/{ preheatTemp }/gi, heatTemperature);
gcode = gcode.replace(/{ preheatBedTemp }/gi, heatBedTemperature);
gcode = gcode.replace(/{ printerType }/gi, printerType);
gcode = gcode.replace(/{ travelSpeed }/gi, travelSpeed);
gcode = gcode.replace(/{ if heatedBed }/gi, heatedBedReplacement);
gcode = gcode.replace(/{printingTemp}/gi, temperature);
gcode = gcode.replace(/{printingBedTemp}/gi, bedTemperature);
gcode = gcode.replace(/{preheatTemp}/gi, heatTemperature);
gcode = gcode.replace(/{preheatBedTemp}/gi, heatBedTemperature);
gcode = gcode.replace(/{printerType}/gi, printerType);
gcode = gcode.replace(/{travelSpeed}/gi, travelSpeed);
gcode = gcode.replace(/{if heatedBed}/gi, heatedBedReplacement);
return gcode;
}