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:
parent
9f50ec73b3
commit
4a76f022e0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user