Added State

master
unknown 2012-05-31 12:45:53 -05:00
parent 56f7fd6e2e
commit 069ee940d3
1 changed files with 4 additions and 4 deletions

View File

@ -124,13 +124,13 @@ class XMLstatus(object):
#handle connect push, then reload page
txt='<?xml version="1.0"?>\n<pronterface>\n'
state="Offline"
if self.statuscheck or self.p.online:
if gPronterPtr.statuscheck or gPronterPtr.p.online:
state="Idle"
if self.sdprinting:
if gPronterPtr.sdprinting:
state="SDPrinting"
if self.p.printing:
if gPronterPtr.p.printing:
state="Printing"
if self.paused:
if gPronterPtr.paused:
state="Paused"
txt=txt+'<state>'+state+'</state>\n'