mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-21 18:43:48 +01:00
move deleting start/endgcode files to stopFetch
This commit is contained in:
parent
1bbb327178
commit
634465fdd6
@ -73,6 +73,7 @@ end
|
||||
|
||||
local function stopFetch()
|
||||
io.popen("killall print-fetch")
|
||||
io.popen("rm /tmp/startcode /tmp/endcode")
|
||||
end
|
||||
|
||||
function M.progress(request, response)
|
||||
@ -190,7 +191,6 @@ function M.stop_POST(request, response)
|
||||
if not printer or not printer:hasSocket() then return end
|
||||
|
||||
stopFetch()
|
||||
io.popen("rm /tmp/startcode /tmp/endcode")
|
||||
setCurrentPrint(nil)
|
||||
|
||||
if(argGcode == nil) then
|
||||
|
Loading…
Reference in New Issue
Block a user