From 90323968fc494a86e140502f5bb4b0a0d127f634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 1 Jan 2018 12:53:59 +0000 Subject: otultraeasy: rename _ZERO_LOG_REQUEST to _MEMORY_ERASE_REQUEST. This makes it the same as the otverio2015. --- glucometerutils/drivers/otultraeasy.py | 4 ++-- 1 file 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): -- cgit v1.2.3