diff options
author | Noel Cragg <noel@squeezehead.com> | 2018-07-08 08:12:15 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-07-24 23:05:44 +0200 |
commit | fbeef8ab4f4d19ae048a6460fcdc3c5782e2b132 (patch) | |
tree | 3fc18cb085247c9e4b111aaf6d531fe735519f84 /glucometerutils | |
parent | change 999 to inf (diff) | |
download | glucometerutils-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 |
Diffstat (limited to 'glucometerutils')
-rw-r--r-- | glucometerutils/support/lifescan_binary_protocol.py | 2 |
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 ), ), |