diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index a23846e..313ff75 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -45,7 +45,6 @@ class Sgp30(): crc = r[2::3] == [Crc8().hash(i) for i in a ] return(crc,a) - return (a,crc_ok) def read_write(self,cmd): write = i2c_msg.write(self._device_addr,cmd.commands) if cmd.replylen <= 0 : diff --git a/tests/mock_smbus2.py b/tests/mock_smbus2.py index 6be1414..b32eff7 100644 --- a/tests/mock_smbus2.py +++ b/tests/mock_smbus2.py @@ -1,4 +1,3 @@ -from smbus2 import i2c_msg from collections import namedtuple from .context import sgp30