diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-30 16:17:51 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-30 16:17:51 +0100 |
commit | 222076484b6b5533d106df849f3bb0d37ad40afa (patch) | |
tree | d51dc7778f9fd9bf4f5410d8aaaf36f36ae98b76 | |
parent | Run test and build on Travis CI (diff) | |
download | glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar.gz glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar.bz2 glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar.lz glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar.xz glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.tar.zst glucometerutils-222076484b6b5533d106df849f3bb0d37ad40afa.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/support/freestyle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/support/freestyle.py b/glucometerutils/support/freestyle.py index 7610729..50f5319 100644 --- a/glucometerutils/support/freestyle.py +++ b/glucometerutils/support/freestyle.py @@ -25,7 +25,7 @@ from glucometerutils.support import hiddevice # protocol. _INIT_SEQUENCE = (0x04, 0x05, 0x15, 0x01) -_LIFESCAN_MESSAGE = construct.Struct( +_FREESTYLE_MESSAGE = construct.Struct( 'hid_report' / construct.Const(construct.Byte, 0), 'message_type' / construct.Byte, 'command' / construct.Padded( @@ -100,7 +100,7 @@ class FreeStyleHidDevice(hiddevice.HidDevice): message_type: (int) The first byte sent with the report to the device. command: (bytes) The command to send out the device. """ - usb_packet = _LIFESCAN_MESSAGE.build( + usb_packet = _FREESTYLE_MESSAGE.build( {'message_type': message_type, 'command': command}) self._write(usb_packet) |