summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glucometerutils/drivers/otverioiq.py6
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(