fix setting replace code

This commit is contained in:
casperlamboo 2017-05-19 12:34:57 +02:00 committed by Simon Voordouw
parent 922111c3e3
commit f0b23647bb
2 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@ export default class {
heatBedTemperature, heatBedTemperature,
travelSpeed, travelSpeed,
printerType, printerType,
heatedbed heatedBed
} = this.config; } = this.config;
travelSpeed *= 60; travelSpeed *= 60;
@ -38,7 +38,7 @@ export default class {
case '_3Dison_plus': printerType = 'r2'; break; case '_3Dison_plus': printerType = 'r2'; break;
} }
const heatedBedReplacement = heatedbed ? '' : ';'; const heatedBedReplacement = heatedBed ? '' : ';';
gcode = gcode.replace(/{printingTemp}/gi, temperature); gcode = gcode.replace(/{printingTemp}/gi, temperature);
gcode = gcode.replace(/{printingBedTemp}/gi, bedTemperature); gcode = gcode.replace(/{printingBedTemp}/gi, bedTemperature);

View File

@ -1,7 +1,8 @@
{ {
"heatupBedTemperature": 70,
"heatupTemperature": 20,
"temperature": 210.0, "temperature": 210.0,
"bedTemperature": 70,
"heatBedTemperature": 20,
"heatTemperature": 20,
"layerHeight": 0.15, "layerHeight": 0.15,
"bottomThickness": 0.4, "bottomThickness": 0.4,
"topThickness": 0.8, "topThickness": 0.8,