fixed typo in filename /tmp/currentprint

This commit is contained in:
Rick Companje 2017-06-23 15:34:07 +02:00
parent 18271618f7
commit 07d4316a7f
1 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ function M.stop_POST(request, response)
local rv,msg = printer:stopPrint(argGcode) local rv,msg = printer:stopPrint(argGcode)
io.popen("killall print-fetch") io.popen("killall print-fetch")
io.popen("rm /tmp/current-print /tmp/startcode /tmp/endcode") io.popen("rm /tmp/currentprint /tmp/startcode /tmp/endcode")
response:addData('id', argId) response:addData('id', argId)
@ -275,7 +275,7 @@ function M.fetch_POST(request, response)
response:setError("no id supplied") response:setError("no id supplied")
return return
end end
local cpfile = io.open("/tmp/current-print", 'w+') local cpfile = io.open("/tmp/currentprint", 'w+')
if cpfile == nil then if cpfile == nil then
response:setError("could not save id") response:setError("could not save id")
return return