hx71x: Avoid base classes to improve python2 compatibility
Also, add a load_cell regression test case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -24,7 +24,7 @@ def hexify(byte_array):
|
||||
return "[%s]" % (", ".join([hex(b) for b in byte_array]))
|
||||
|
||||
|
||||
class ADS1220():
|
||||
class ADS1220:
|
||||
def __init__(self, config):
|
||||
self.printer = printer = config.get_printer()
|
||||
self.name = config.get_name().split()[-1]
|
||||
|
||||
Reference in New Issue
Block a user