mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-21 18:43:48 +01:00
stop print-fetch before stopping print
This commit is contained in:
parent
d9e84308dd
commit
0acc20f498
@ -166,13 +166,14 @@ function M.stop_POST(request, response)
|
||||
local printer,msg = printerUtils.createPrinterOrFail(argId, response)
|
||||
if not printer or not printer:hasSocket() then return end
|
||||
|
||||
io.popen("killall print-fetch")
|
||||
io.popen("rm /tmp/current-print /tmp/startcode /tmp/endcode")
|
||||
|
||||
if(argGcode == nil) then
|
||||
argGcode = ""
|
||||
end
|
||||
local rv,msg = printer:stopPrint(argGcode)
|
||||
|
||||
io.popen("killall print-fetch")
|
||||
io.popen("rm /tmp/current-print /tmp/startcode /tmp/endcode")
|
||||
|
||||
|
||||
response:addData('id', argId)
|
||||
|
Loading…
Reference in New Issue
Block a user