diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-07 15:29:28 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-07 15:29:28 +0100 |
commit | d176a98e82fbbb4280cb10c0ffc40bb8476198bd (patch) | |
tree | 959fe14edd32589f7fdd8423baccb0c868f36984 | |
parent | otverioiq: fix definition of the reading response, fix get_reading_count method. (diff) | |
download | glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar.gz glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar.bz2 glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar.lz glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar.xz glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.tar.zst glucometerutils-d176a98e82fbbb4280cb10c0ffc40bb8476198bd.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/drivers/otverioiq.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/glucometerutils/drivers/otverioiq.py b/glucometerutils/drivers/otverioiq.py index d239cff..d58fa99 100644 --- a/glucometerutils/drivers/otverioiq.py +++ b/glucometerutils/drivers/otverioiq.py @@ -172,9 +172,11 @@ class Device(serial.SerialDevice): response = self._send_request( _WRITE_RTC_REQUEST, { 'timestamp': date, - }, _READ_RTC_RESPONSE) + }, lifescan_binary_protocol.COMMAND_SUCCESS) - return response.timestamp + # The device does not return the new datetime, so confirm by calling + # READ RTC again. + return self.get_datetime() def zero_log(self): self._send_request( |