Modification for connecting state of printer.

This commit is contained in:
Wouter R 2014-03-05 17:52:46 +01:00
parent 9f50ec73b3
commit 4a76f022e0
1 changed files with 3 additions and 3 deletions

View File

@ -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)