0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 02:53:49 +01:00

submit total lines when fetching print

This commit is contained in:
Simon Voordouw 2017-06-19 11:28:39 +02:00
parent 6b4e4e934c
commit f2e77d9529

View File

@ -68,7 +68,7 @@ do
local f = io.popen("wget -qO - " .. remote .. "/fetch/" .. id .. "/" .. current_line)
local line = f:read()
while line ~= nil do
printer:appendGcode(line)
printer:appendGcode(line, total_lines, { seq_number = -1, seq_total = -1, source = remote })
current_line = current_line + 1
line = f:read()
end