Removes some dead-code and imports
This commit is contained in:
@@ -45,7 +45,6 @@ class Sgp30():
|
|||||||
crc = r[2::3] == [Crc8().hash(i) for i in a ]
|
crc = r[2::3] == [Crc8().hash(i) for i in a ]
|
||||||
return(crc,a)
|
return(crc,a)
|
||||||
|
|
||||||
return (a,crc_ok)
|
|
||||||
def read_write(self,cmd):
|
def read_write(self,cmd):
|
||||||
write = i2c_msg.write(self._device_addr,cmd.commands)
|
write = i2c_msg.write(self._device_addr,cmd.commands)
|
||||||
if cmd.replylen <= 0 :
|
if cmd.replylen <= 0 :
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
from smbus2 import i2c_msg
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from .context import sgp30
|
from .context import sgp30
|
||||||
|
Reference in New Issue
Block a user