Adding 'status information request' to the raster operations
This commit is contained in:
@@ -62,6 +62,7 @@ def main():
|
||||
qlr.add_switch_mode()
|
||||
except BrotherQLUnsupportedCmd:
|
||||
pass
|
||||
qlr.add_status_information()
|
||||
qlr.mtype = 0x0A
|
||||
qlr.mwidth = 62
|
||||
qlr.mlength = 0
|
||||
|
||||
@@ -62,6 +62,10 @@ class BrotherQLRaster(object):
|
||||
self.page_number = 0
|
||||
self.data += b'\x1B\x40' # init
|
||||
|
||||
def add_status_information(self):
|
||||
""" Status Information Request """
|
||||
self.data += b'\x1B\x69\x53'
|
||||
|
||||
def add_switch_mode(self):
|
||||
"""
|
||||
Switch dynamic command mode
|
||||
|
||||
Reference in New Issue
Block a user