0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-21 18:43:48 +01:00

append end G-code correctly

This commit is contained in:
Simon Voordouw 2017-06-22 16:17:38 +02:00
parent ae46535275
commit d9e84308dd

View File

@ -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