summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-01 14:13:25 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-01 14:13:25 +0100
commitefd42641733b7a172f8081d6da9f9329c00f0e10 (patch)
tree13255d615c685c829965da94c69a7c5066a74f81
parentotultraeasy: merge _send_request and _read_response and match otverio2015. (diff)
downloadglucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar.gz
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar.bz2
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar.lz
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar.xz
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.tar.zst
glucometerutils-efd42641733b7a172f8081d6da9f9329c00f0e10.zip
-rw-r--r--glucometerutils/drivers/otverio2015.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py
index 8d87409..2c5b52f 100644
--- a/glucometerutils/drivers/otverio2015.py
+++ b/glucometerutils/drivers/otverio2015.py
@@ -245,17 +245,17 @@ class Device(object):
self._send_request(
3, _MEMORY_ERASE_REQUEST, None, _COMMAND_SUCCESS)
- def _get_reading_count(self):
- response = self._send_request(
- 3, _READ_RECORD_COUNT_REQUEST, None, _READ_RECORD_COUNT_RESPONSE)
- return response.count
-
def get_glucose_unit(self):
response = self._send_request(
4, _READ_PARAMETER_REQUEST, {'selector': 'unit'},
_READ_UNIT_RESPONSE)
return response.unit
+ def _get_reading_count(self):
+ response = self._send_request(
+ 3, _READ_RECORD_COUNT_REQUEST, None, _READ_RECORD_COUNT_RESPONSE)
+ return response.count
+
def _get_reading(self, record_id):
response = self._send_request(
3, _READ_RECORD_REQUEST, {'record_id': record_id},