0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 02:53:49 +01:00

move deleting start/endgcode files to stopFetch

This commit is contained in:
Simon Voordouw 2017-07-06 15:31:57 +02:00
parent 1bbb327178
commit 634465fdd6

View File

@ -73,6 +73,7 @@ end
local function stopFetch() local function stopFetch()
io.popen("killall print-fetch") io.popen("killall print-fetch")
io.popen("rm /tmp/startcode /tmp/endcode")
end end
function M.progress(request, response) 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 if not printer or not printer:hasSocket() then return end
stopFetch() stopFetch()
io.popen("rm /tmp/startcode /tmp/endcode")
setCurrentPrint(nil) setCurrentPrint(nil)
if(argGcode == nil) then if(argGcode == nil) then