Added State
parent
56f7fd6e2e
commit
069ee940d3
|
@ -124,13 +124,13 @@ class XMLstatus(object):
|
||||||
#handle connect push, then reload page
|
#handle connect push, then reload page
|
||||||
txt='<?xml version="1.0"?>\n<pronterface>\n'
|
txt='<?xml version="1.0"?>\n<pronterface>\n'
|
||||||
state="Offline"
|
state="Offline"
|
||||||
if self.statuscheck or self.p.online:
|
if gPronterPtr.statuscheck or gPronterPtr.p.online:
|
||||||
state="Idle"
|
state="Idle"
|
||||||
if self.sdprinting:
|
if gPronterPtr.sdprinting:
|
||||||
state="SDPrinting"
|
state="SDPrinting"
|
||||||
if self.p.printing:
|
if gPronterPtr.p.printing:
|
||||||
state="Printing"
|
state="Printing"
|
||||||
if self.paused:
|
if gPronterPtr.paused:
|
||||||
state="Paused"
|
state="Paused"
|
||||||
|
|
||||||
txt=txt+'<state>'+state+'</state>\n'
|
txt=txt+'<state>'+state+'</state>\n'
|
||||||
|
|
Loading…
Reference in New Issue