0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 11:03:48 +01:00

Also closing file descriptor after removing current print file

This commit is contained in:
peteruithoven 2017-07-07 09:59:27 +02:00
parent 2ee6b05e61
commit 550e151153

View File

@ -51,7 +51,7 @@ end
local function setCurrentPrint(id) local function setCurrentPrint(id)
local cpfileName = "/tmp/current-print" local cpfileName = "/tmp/current-print"
if id == nil then if id == nil then
io.popen('rm ' .. cpfileName) io.popen('rm ' .. cpfileName):close()
return true return true
end end