From 222076484b6b5533d106df849f3bb0d37ad40afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 30 Dec 2017 15:17:51 +0000 Subject: freestyle: rename miscopied constant name. --- glucometerutils/support/freestyle.py | 4 ++-- 1 file 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) -- cgit v1.2.3