summaryrefslogtreecommitdiffstats
path: root/glucometerutils
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-07 15:19:20 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-07 15:19:20 +0100
commit7752b59a8c036ba1446db782ec1edb195c7064d1 (patch)
treea93fb102cdd96b31d586c37b197883032648d4fe /glucometerutils
parentotverioiq: fix up syntax. (diff)
downloadglucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar.gz
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar.bz2
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar.lz
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar.xz
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.tar.zst
glucometerutils-7752b59a8c036ba1446db782ec1edb195c7064d1.zip
Diffstat (limited to 'glucometerutils')
-rw-r--r--glucometerutils/drivers/otverioiq.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glucometerutils/drivers/otverioiq.py b/glucometerutils/drivers/otverioiq.py
index 8cc8051..0eb94b4 100644
--- a/glucometerutils/drivers/otverioiq.py
+++ b/glucometerutils/drivers/otverioiq.py
@@ -33,7 +33,7 @@ _VERSION_RESPONSE = construct.Struct(
lifescan_binary_protocol.COMMAND_SUCCESS,
'version' / construct.PascalString(construct.Byte, encoding='ascii'),
# NULL-termination is not included in string length.
- construct.Const('\x00'),
+ construct.Const(b'\x00'),
)
_SERIAL_NUMBER_REQUEST = construct.Const(
@@ -99,7 +99,7 @@ _READING_RESPONSE = construct.Struct(
class Device(serial.SerialDevice):
- BAUDRATE = 9600
+ BAUDRATE = 38400
DEFAULT_CABLE_ID = '10c4:85a7' # Specific ID for embedded cp210x
TIMEOUT = 0.5
@@ -165,7 +165,7 @@ class Device(serial.SerialDevice):
def get_datetime(self):
response = self._send_request(
- _READ_RTC_REQUEST, _READ_RTC_RESPONSE)
+ _READ_RTC_REQUEST, None, _READ_RTC_RESPONSE)
return response.timestamp