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:
parent
6b4e4e934c
commit
f2e77d9529
@ -68,7 +68,7 @@ do
|
|||||||
local f = io.popen("wget -qO - " .. remote .. "/fetch/" .. id .. "/" .. current_line)
|
local f = io.popen("wget -qO - " .. remote .. "/fetch/" .. id .. "/" .. current_line)
|
||||||
local line = f:read()
|
local line = f:read()
|
||||||
while line ~= nil do
|
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
|
current_line = current_line + 1
|
||||||
line = f:read()
|
line = f:read()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user