summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glucometerutils/drivers/otultra2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py
index 43be6d4..3182b42 100644
--- a/glucometerutils/drivers/otultra2.py
+++ b/glucometerutils/drivers/otultra2.py
@@ -235,7 +235,8 @@ class Device(object):
if not match:
raise exceptions.InvalidResponse(header)
- final_unit = unit or self._ParseGlucoseUnit(match.group(2))
+ if not unit:
+ unit = self._ParseGlucoseUnit(match.group(2))
count = int(match.group(1))
assert count == len(data)