0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 02:53:49 +01:00

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

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)