From 58dbe4d2a0ea42805dcf914859b6abf47b51c566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 13 Sep 2017 14:21:51 +0100 Subject: otverio2015: fix readings on Select Plus readers (Issue #22). The reading value is only 16-bit long, not 32-bit. The following byte is a meal indicator (not implemented in Verio), followed by a (likely) constant 0x00. --- glucometerutils/drivers/otverio2015.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py index deeac4b..632192f 100644 --- a/glucometerutils/drivers/otverio2015.py +++ b/glucometerutils/drivers/otverio2015.py @@ -53,7 +53,7 @@ _STRUCT_CHECKSUM = _STRUCT_UINT16 _STRUCT_TIMESTAMP = _STRUCT_UINT32 _STRUCT_RECORDID = _STRUCT_UINT16 _STRUCT_READING = _STRUCT_UINT32 -_STRUCT_RECORD = struct.Struct('