From 04a66da68873e6ec087d845027e994673573cff8 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 19 May 2017 11:43:47 +0200 Subject: [PATCH] always start first layer on Z0.2 --- src/GCode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GCode.js b/src/GCode.js index 636854c..fa2dcd0 100644 --- a/src/GCode.js +++ b/src/GCode.js @@ -77,7 +77,7 @@ export default class { travelSpeed } = this.settings.config; - const z = (layer + 1) * layerHeight; + const z = layer * layerHeight + 0.2; const speed = travelSpeed * 60; this._addGCode({ @@ -111,7 +111,7 @@ export default class { } = profile; speed *= 60; - const z = (layer + 1) * layerHeight; + const z = layer * layerHeight + 0.2; const lineLength = this._nozzlePosition.distanceTo(newNozzlePosition);