From d9e84308dd4d7308b585e575f6d3eb32f9e893b4 Mon Sep 17 00:00:00 2001 From: Simon Voordouw Date: Thu, 22 Jun 2017 16:17:38 +0200 Subject: [PATCH] append end G-code correctly --- src/script/print-fetch.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/script/print-fetch.lua b/src/script/print-fetch.lua index aa76111..8266480 100755 --- a/src/script/print-fetch.lua +++ b/src/script/print-fetch.lua @@ -54,7 +54,6 @@ end function readGCodeArg(argi) local gcodeFile = arg[argi] - total_lines = total_lines + countlines(gcodeFile) return io.open(gcodeFile):read('*a') end @@ -88,7 +87,7 @@ do log("finished fetching gcode") if endCode ~= nil then log("appending end gcode") - printer:appendGcode(endCode) + printer:appendGcode(endCode, total_lines, { seq_number = -1, seq_total = -1, source = id }) end finished = true break