summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Caldas <andre.em.caldas@gmail.com>2019-05-04 16:55:05 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2019-05-05 18:03:59 +0200
commit27fbd88b5e14564a1980c612d86812487640027a (patch)
treef9ac4ad239a6b0a81a76021cee01dc4e1c7e1494
parentAdd SPDX license to .dir-locals.el. (diff)
downloadglucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar.gz
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar.bz2
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar.lz
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar.xz
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.tar.zst
glucometerutils-27fbd88b5e14564a1980c612d86812487640027a.zip
-rw-r--r--glucometerutils/support/freestyle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py
index 816af81..1c5e284 100644
--- a/glucometerutils/support/freestyle.py
+++ b/glucometerutils/support/freestyle.py
@@ -28,7 +28,7 @@ from glucometerutils.support import hiddevice
_INIT_SEQUENCE = (0x04, 0x05, 0x15, 0x01)
_FREESTYLE_MESSAGE = construct.Struct(
- 'hid_report' / construct.Const(0, construct.Byte),
+ 'hid_report' / construct.Const(construct.Byte, 0),
'message_type' / construct.Byte,
'command' / construct.Padded(
63, # command can only be up to 62 bytes, but one is used for length.