fix is_online
This commit is contained in:
parent
100c6b5e89
commit
62615864a9
@ -845,7 +845,7 @@ class Escpos(object):
|
|||||||
status = self.query_status(RT_STATUS_ONLINE)
|
status = self.query_status(RT_STATUS_ONLINE)
|
||||||
if len(status) == 0:
|
if len(status) == 0:
|
||||||
return False
|
return False
|
||||||
return not (status & RT_MASK_ONLINE)
|
return not (status[0] & RT_MASK_ONLINE)
|
||||||
|
|
||||||
def paper_status(self):
|
def paper_status(self):
|
||||||
""" Queries the printer its paper status.
|
""" Queries the printer its paper status.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user