Corrections to pull request 237.
Create a _read function in the Escpos abtract class, which throws a NotImplementedError. Rename the isOnline function.
This commit is contained in:
parent
548a4825f8
commit
0a1136f555
@ -79,6 +79,9 @@ class Escpos(object):
|
||||
"""
|
||||
pass
|
||||
|
||||
def _read(self, msg):
|
||||
raise NotImplementedError();
|
||||
|
||||
def image(self, img_source, high_density_vertical=True, high_density_horizontal=True, impl="bitImageRaster",
|
||||
fragment_height=960):
|
||||
""" Print an image
|
||||
@ -744,7 +747,7 @@ class Escpos(object):
|
||||
else:
|
||||
return [8];
|
||||
|
||||
def _isOnline(self):
|
||||
def isOnline(self):
|
||||
status = self.queryStatus()[0];
|
||||
return ((status & RT_MASK_ONLINE) == 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user