diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-11-12 10:32:22 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-11-14 00:00:01 +0100 |
commit | 39fe3a60a25a9501a1c1eb57b89a3367575161f7 (patch) | |
tree | 4b4ea30cc9a3676425eda514eb1f6971e21b93cd | |
parent | Fix with_ketone (diff) | |
download | glucometerutils-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.py | 8 |
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): |