0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

use current-print

This commit is contained in:
Simon Voordouw 2017-06-27 17:45:56 +02:00
parent 753672e164
commit 8adc74876e

View File

@ -56,7 +56,7 @@ function M.progress(request, response)
-- NOTE: despite their names, `currentLine` is still the error indicator and `bufferedLines` the message in such case. -- NOTE: despite their names, `currentLine` is still the error indicator and `bufferedLines` the message in such case.
local currentLine,bufferedLines,totalLines,bufferSize,maxBufferSize,seqNumber,seqTotal = printer:getProgress() local currentLine,bufferedLines,totalLines,bufferSize,maxBufferSize,seqNumber,seqTotal = printer:getProgress()
local idfile = io.open('/tmp/currentprint') local idfile = io.open('/tmp/current-print')
local printId local printId
if idfile ~= nil then if idfile ~= nil then
printId = idfile:read('*a') printId = idfile:read('*a')