summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-11-12 10:32:22 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-11-14 00:00:01 +0100
commit39fe3a60a25a9501a1c1eb57b89a3367575161f7 (patch)
tree4b4ea30cc9a3676425eda514eb1f6971e21b93cd
parentFix with_ketone (diff)
downloadglucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar.gz
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar.bz2
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar.lz
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar.xz
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.tar.zst
glucometerutils-39fe3a60a25a9501a1c1eb57b89a3367575161f7.zip
-rw-r--r--glucometerutils/drivers/otultraeasy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/glucometerutils/drivers/otultraeasy.py b/glucometerutils/drivers/otultraeasy.py
index 6a4bfd2..461de26 100644
--- a/glucometerutils/drivers/otultraeasy.py
+++ b/glucometerutils/drivers/otultraeasy.py
@@ -80,7 +80,7 @@ class _Packet(object):
self.cmd.extend(serial.read(3))
if self.cmd[_IDX_STX] != _STX:
- raise lifescan_command.MalformedCommand(
+ raise lifescan.MalformedCommand(
'at position %s expected %02x, received %02x' % (
_IDX_STX, _STX, self.cmd[_IDX_STX]))
@@ -91,7 +91,7 @@ class _Packet(object):
self.cmd.extend(serial.read(3))
if self.cmd[_IDX_ETX] != _ETX:
- raise lifescan_command.MalformedCommand(
+ raise lifescan.MalformedCommand(
'at position %s expected %02x, received %02x' % (
_IDX_ETX, _ETX, self.cmd[_IDX_ETX]))
@@ -209,7 +209,7 @@ class Device(serial.SerialDevice):
response.read_from(self.serial_)
if not response.disconnect and response.sent_counter != self.expect_receive_:
- raise lifescan_command.MalformedCommand(
+ raise lifescan.MalformedCommand(
'at position 2[0b] expected %02x, received %02x' % (
self.expect_receive_, response.expect_receive))
@@ -299,7 +299,7 @@ class Device(serial.SerialDevice):
elif response.data[2] == 1:
return common.UNIT_MMOLL
else:
- raise lifescan_command.MalformedCommand(
+ raise lifescan.MalformedCommand(
'at position PM1 invalid value %02x for unit' % response.data[2])
def _get_reading(self, record_id):