summaryrefslogtreecommitdiffstats
path: root/glucometerutils/drivers/otverio2015.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/drivers/otverio2015.py')
-rw-r--r--glucometerutils/drivers/otverio2015.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/glucometerutils/drivers/otverio2015.py b/glucometerutils/drivers/otverio2015.py
index d0b8a9c..9aff4d2 100644
--- a/glucometerutils/drivers/otverio2015.py
+++ b/glucometerutils/drivers/otverio2015.py
@@ -64,15 +64,9 @@ _READ_PARAMETER_REQUEST = construct.Struct(
construct.Byte, unit=0x04),
)
-_GLUCOSE_MAPPING = {
- common.Unit.MG_DL: 0x00,
- common.Unit.MMOL_L: 0x01,
-}
-
_READ_UNIT_RESPONSE = construct.Struct(
construct.Const(b'\x03\x06'), # different from _COMMAND_SUCCESS
- 'unit' / construct.SymmetricMapping(
- construct.Byte, _GLUCOSE_MAPPING),
+ 'unit' / lifescan_binary_protocol.GLUCOSE_UNIT,
construct.Padding(3),
)