summaryrefslogtreecommitdiffstats
path: root/glucometerutils
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-01 13:53:59 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-01 13:53:59 +0100
commit90323968fc494a86e140502f5bb4b0a0d127f634 (patch)
tree40efcceef1da49237b4d37dc3d8d2b44f6d2f67e /glucometerutils
parentotultraeasy: wrap around construct exceptions to MalformedCommand. (diff)
downloadglucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar.gz
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar.bz2
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar.lz
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar.xz
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.tar.zst
glucometerutils-90323968fc494a86e140502f5bb4b0a0d127f634.zip
Diffstat (limited to 'glucometerutils')
-rw-r--r--glucometerutils/drivers/otultraeasy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glucometerutils/drivers/otultraeasy.py b/glucometerutils/drivers/otultraeasy.py
index ced1f0b..38bd1aa 100644
--- a/glucometerutils/drivers/otultraeasy.py
+++ b/glucometerutils/drivers/otultraeasy.py
@@ -102,7 +102,7 @@ _GLUCOSE_UNIT_RESPONSE = construct.Struct(
construct.Padding(3),
)
-_ZERO_LOG_REQUEST = construct.Const(b'\x05\x1A')
+_MEMORY_ERASE_REQUEST = construct.Const(b'\x05\x1A')
_READING_COUNT_RESPONSE = construct.Struct(
construct.Const(b'\x05\x0f'),
@@ -236,7 +236,7 @@ class Device(serial.SerialDevice):
return response.timestamp
def zero_log(self):
- self._send_request(_ZERO_LOG_REQUEST, None)
+ self._send_request(_MEMORY_ERASE_REQUEST, None)
self._read_response(_COMMAND_SUCCESS)
def get_glucose_unit(self):