From 9e0c263ee89df805fc33aa3463c3ce643b72df34 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 11 Nov 2017 12:27:49 -0500 Subject: [PATCH] fix logic error that blocked gcode prefix --- js/kiri-driver-fdm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/kiri-driver-fdm.js b/js/kiri-driver-fdm.js index 610b9530..1f123ca5 100644 --- a/js/kiri-driver-fdm.js +++ b/js/kiri-driver-fdm.js @@ -337,13 +337,12 @@ var gs_kiri_fdm = exports; append("; --- startup ---"); for (var i=0; i 0) { + if (device.extrudeAbs && line.indexOf('E') > 0) { line.split(' ').forEach(function (tok) { // use max E position from gcode-preamble if (tok[0] == 'E') outputLength = Math.max(outputLength, parseFloat(tok.substring(1))); }); } - if (device.extrudeAbs) append(constReplace(line, consts)); }