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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.