1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-12-02 09:43:30 +00:00

fix is_online

This commit is contained in:
Thijs Triemstra
2018-02-13 00:45:56 +01:00
committed by GitHub
parent 100c6b5e89
commit 62615864a9

View File

@@ -845,7 +845,7 @@ class Escpos(object):
status = self.query_status(RT_STATUS_ONLINE)
if len(status) == 0:
return False
return not (status & RT_MASK_ONLINE)
return not (status[0] & RT_MASK_ONLINE)
def paper_status(self):
""" Queries the printer its paper status.