From 4a76f022e02d7cd015314aabccdd0e1500a142c6 Mon Sep 17 00:00:00 2001 From: Wouter R Date: Wed, 5 Mar 2014 17:52:46 +0100 Subject: [PATCH] Modification for connecting state of printer. --- src/rest/api/api_info.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rest/api/api_info.lua b/src/rest/api/api_info.lua index 75a42a2..922c5bb 100644 --- a/src/rest/api/api_info.lua +++ b/src/rest/api/api_info.lua @@ -173,12 +173,12 @@ function M.status(request, response) local ds = wifi.getDeviceState() log:debug(" ssid: "..utils.dump(ds.ssid)) - + local rv rv, state = printerAPI.state(request, response) if(rv == false) then return end - - if(state ~= "disconnected") then + + if state ~= "disconnected" and state ~= "connecting" then rv = printerAPI.temperature(request, response) if(rv == false) then return end rv = printerAPI.progress(request, response)