From b8e08b1b2c8147110509a421151c860334f3c688 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 24 Aug 2022 23:53:58 +0200 Subject: [PATCH] Update for PT-P950NW https://github.com/matmair/brother_ql-inventree/pull/6 Co-authored-by: Michael Lee --- brother_ql/labels.py | 1 + brother_ql/models.py | 1 + brother_ql/reader.py | 1 + 3 files changed, 3 insertions(+) diff --git a/brother_ql/labels.py b/brother_ql/labels.py index c5be446..5e3be71 100644 --- a/brother_ql/labels.py +++ b/brother_ql/labels.py @@ -82,6 +82,7 @@ def name(self): # type: str ALL_LABELS = ( Label("12", ( 12, 0), FormFactor.ENDLESS, ( 142, 0), ( 106, 0), 29 , feed_margin=35), + Label("18", ( 18, 0), FormFactor.ENDLESS, ( 256, 0), ( 234, 0), 171 , feed_margin=14), Label("29", ( 29, 0), FormFactor.ENDLESS, ( 342, 0), ( 306, 0), 6 , feed_margin=35), Label("38", ( 38, 0), FormFactor.ENDLESS, ( 449, 0), ( 413, 0), 12 , feed_margin=35), Label("50", ( 50, 0), FormFactor.ENDLESS, ( 590, 0), ( 554, 0), 12 , feed_margin=35), diff --git a/brother_ql/models.py b/brother_ql/models.py index eeee3fd..c9c622c 100644 --- a/brother_ql/models.py +++ b/brother_ql/models.py @@ -63,6 +63,7 @@ def name(self): Model('QL-1115NWB',(301, 35434), number_bytes_per_row=162, additional_offset_r=44), Model('PT-P750W', (31, 14172), number_bytes_per_row=16), Model('PT-P900W', (57, 28346), number_bytes_per_row=70), + Model('PT-P950NW', (57, 28346), number_bytes_per_row=70), ] class ModelsManager(ElementsManager): diff --git a/brother_ql/reader.py b/brother_ql/reader.py index ad936b6..1f7cf03 100755 --- a/brother_ql/reader.py +++ b/brother_ql/reader.py @@ -33,6 +33,7 @@ b'\x1b\x69\x55\x77\x01': ('amedia', 127, "Additional media information command"), b'\x1b\x69\x55\x4A': ('jobid', 14, "Job ID setting command"), b'\x1b\x69\x58\x47': ("request_config", 0, "Request transmission of .ini config file of printer"), + b'\x1b\x69\x6B\x63': ("number_of_copies", 2, "Internal specification commands"), b'\x1b\x69\x53': ('status request', 0, "A status information request sent to the printer"), b'\x80\x20\x42': ('status response',29, "A status response received from the printer"), }