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()
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