From be1d1bbac32f9f3eb48a3d5aae8d648ba1175277 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Sun, 8 May 2016 10:26:47 +0200 Subject: [PATCH] fix code --- src/gcode.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gcode.js b/src/gcode.js index a40a4c3..efba660 100644 --- a/src/gcode.js +++ b/src/gcode.js @@ -71,7 +71,7 @@ export default class { const { layerHeight, travelSpeed - } = this.settings; + } = this.settings.config; const z = (layer + 1) * layerHeight; const speed = travelSpeed * 60; @@ -97,7 +97,7 @@ export default class { nozzleDiameter, filamentThickness, travelSpeed - } = this.settings; + } = this.settings.config; const profile = this.settings.config[(this.bottom ? 'bottom' : type)]; @@ -158,7 +158,7 @@ export default class { retractionEnabled, retractionMinDistance, retractionSpeed - } = this.settings; + } = this.settings.config; if (!this.isRetracted && retractionEnabled) { this.isRetracted = true;