summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Cragg <noel@squeezehead.com>2018-07-08 08:12:15 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-07-24 23:05:44 +0200
commitfbeef8ab4f4d19ae048a6460fcdc3c5782e2b132 (patch)
tree3fc18cb085247c9e4b111aaf6d531fe735519f84
parentchange 999 to inf (diff)
downloadglucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar.gz
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar.bz2
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar.lz
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar.xz
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.tar.zst
glucometerutils-fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132.zip
-rw-r--r--glucometerutils/support/lifescan_binary_protocol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glucometerutils/support/lifescan_binary_protocol.py b/glucometerutils/support/lifescan_binary_protocol.py
index 1771dcf..4632a94 100644
--- a/glucometerutils/support/lifescan_binary_protocol.py
+++ b/glucometerutils/support/lifescan_binary_protocol.py
@@ -44,7 +44,7 @@ def LifeScanPacket(command_prefix, include_link_control):
'link_control' / link_control_construct,
'command_prefix' / command_prefix_construct,
'message' / construct.Bytes(
- lambda this: len(this.message)),
+ lambda this: this.length - 7),
construct.Const(b'\x03'), # etx
),
),