From 07d4316a7f0873576ac180864fbe57728d2ce0d6 Mon Sep 17 00:00:00 2001 From: Rick Companje Date: Fri, 23 Jun 2017 15:34:07 +0200 Subject: [PATCH] fixed typo in filename /tmp/currentprint --- src/rest/api/api_printer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/api/api_printer.lua b/src/rest/api/api_printer.lua index ad6443e..942757b 100644 --- a/src/rest/api/api_printer.lua +++ b/src/rest/api/api_printer.lua @@ -172,7 +172,7 @@ function M.stop_POST(request, response) local rv,msg = printer:stopPrint(argGcode) 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) @@ -275,7 +275,7 @@ function M.fetch_POST(request, response) response:setError("no id supplied") return end - local cpfile = io.open("/tmp/current-print", 'w+') + local cpfile = io.open("/tmp/currentprint", 'w+') if cpfile == nil then response:setError("could not save id") return