From f2e77d95294c19bd6c9332140ad278351cb69e7b Mon Sep 17 00:00:00 2001 From: Simon Voordouw Date: Mon, 19 Jun 2017 11:28:39 +0200 Subject: [PATCH] submit total lines when fetching print --- src/script/print-fetch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/print-fetch.lua b/src/script/print-fetch.lua index 33f3d46..00dde39 100755 --- a/src/script/print-fetch.lua +++ b/src/script/print-fetch.lua @@ -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