mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +01:00
Also closing file descriptor after removing current print file
This commit is contained in:
parent
2ee6b05e61
commit
550e151153
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user