Adding 'status information request' to the raster operations

This commit is contained in:
Philipp Klaus
2016-07-21 17:40:30 +02:00
parent 856166da14
commit 7de4c0b3c5
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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