mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 11:03:48 +01:00
log fetch g-code file id and stopFetch
This commit is contained in:
parent
59c71a34ba
commit
c3e4ec88a8
@ -72,6 +72,7 @@ local function getCurrentPrint()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function stopFetch()
|
local function stopFetch()
|
||||||
|
log:verbose(MOD_ABBR, "stopping print-fetch and removing start/endgcode")
|
||||||
io.popen("killall print-fetch"):close()
|
io.popen("killall print-fetch"):close()
|
||||||
io.popen("rm /tmp/startcode /tmp/endcode"):close()
|
io.popen("rm /tmp/startcode /tmp/endcode"):close()
|
||||||
setCurrentPrint(nil)
|
setCurrentPrint(nil)
|
||||||
@ -292,6 +293,7 @@ function M.fetch_POST(request, response)
|
|||||||
end
|
end
|
||||||
setCurrentPrint(id)
|
setCurrentPrint(id)
|
||||||
|
|
||||||
|
log:info(MOD_ABBR, " starting fetch print. id: " .. id .. " server: " .. gcodeServer)
|
||||||
io.popen("print-fetch " .. socket .. " " .. gcodeServer .. " " .. id .. gcodeFiles)
|
io.popen("print-fetch " .. socket .. " " .. gcodeServer .. " " .. id .. gcodeFiles)
|
||||||
|
|
||||||
response:setSuccess()
|
response:setSuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user