mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +01:00
move removing current-print file to stopFetch
This commit is contained in:
parent
e5de852087
commit
59c71a34ba
@ -74,6 +74,7 @@ end
|
|||||||
local function stopFetch()
|
local function stopFetch()
|
||||||
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)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.progress(request, response)
|
function M.progress(request, response)
|
||||||
@ -191,7 +192,6 @@ function M.stop_POST(request, response)
|
|||||||
if not printer or not printer:hasSocket() then return end
|
if not printer or not printer:hasSocket() then return end
|
||||||
|
|
||||||
stopFetch()
|
stopFetch()
|
||||||
setCurrentPrint(nil)
|
|
||||||
|
|
||||||
if(argGcode == nil) then
|
if(argGcode == nil) then
|
||||||
argGcode = ""
|
argGcode = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user