From f0b23647bbc4fefc5ddcdc1b21682678cd231a9f Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 19 May 2017 12:34:57 +0200 Subject: [PATCH] fix setting replace code --- src/Settings.js | 4 ++-- src/settings/user_settings.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Settings.js b/src/Settings.js index 1f55b6b..08a3abf 100644 --- a/src/Settings.js +++ b/src/Settings.js @@ -25,7 +25,7 @@ export default class { heatBedTemperature, travelSpeed, printerType, - heatedbed + heatedBed } = this.config; travelSpeed *= 60; @@ -38,7 +38,7 @@ export default class { case '_3Dison_plus': printerType = 'r2'; break; } - const heatedBedReplacement = heatedbed ? '' : ';'; + const heatedBedReplacement = heatedBed ? '' : ';'; gcode = gcode.replace(/{printingTemp}/gi, temperature); gcode = gcode.replace(/{printingBedTemp}/gi, bedTemperature); diff --git a/src/settings/user_settings.json b/src/settings/user_settings.json index c6257a6..8186f38 100644 --- a/src/settings/user_settings.json +++ b/src/settings/user_settings.json @@ -1,7 +1,8 @@ { - "heatupBedTemperature": 70, - "heatupTemperature": 20, "temperature": 210.0, + "bedTemperature": 70, + "heatBedTemperature": 20, + "heatTemperature": 20, "layerHeight": 0.15, "bottomThickness": 0.4, "topThickness": 0.8,