summaryrefslogtreecommitdiffstats
path: root/glucometerutils/support/lifescan_binary_protocol.py
diff options
context:
space:
mode:
authorArkadiusz Bulski <arek.bulski@gmail.com>2018-02-16 08:24:25 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-03-17 14:41:40 +0100
commit4819131ff81532c06c5eccc4c70135e72ca3f7c9 (patch)
tree2f401c51f90afee69939fb74f20c9542686cb5a9 /glucometerutils/support/lifescan_binary_protocol.py
parentconstruct: the construct API is significantly unstable, fix to 2.8.22 only. (diff)
downloadglucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar.gz
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar.bz2
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar.lz
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar.xz
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.tar.zst
glucometerutils-4819131ff81532c06c5eccc4c70135e72ca3f7c9.zip
Diffstat (limited to '')
-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 caa9b63..6579ab0 100644
--- a/glucometerutils/support/lifescan_binary_protocol.py
+++ b/glucometerutils/support/lifescan_binary_protocol.py
@@ -33,7 +33,7 @@ def LifeScanPacket(command_prefix, include_link_control):
else:
link_control_construct = construct.Const(b'\x00')
- command_prefix_construct = construct.Const(construct.Byte, command_prefix)
+ command_prefix_construct = construct.Const(command_prefix, construct.Byte)
return construct.Struct(
construct.RawCopy(