From 39fe3a60a25a9501a1c1eb57b89a3367575161f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sun, 12 Nov 2017 09:32:22 +0000 Subject: otultraeasy: fix wrong module name for shared lifescan code. This was meant to be lifescan_common, and then renamed to just lifescan, but clearly I forgot that. Addresses part of Issue #29. --- glucometerutils/drivers/otultraeasy.py | 8 ++++---- 1 file 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): -- cgit v1.2.3