diff --git a/apps/lacrosse.py b/apps/lacrosse.py index ad9e2b3..7ca4dcd 100755 --- a/apps/lacrosse.py +++ b/apps/lacrosse.py @@ -39,7 +39,7 @@ class BaudChanger(threading.Thread): dr = 9.579 else: dr = 17.241 - print "Switch baudrate to " + str(dr) + " kbit/s" + print("Switch baudrate to " + str(dr) + " kbit/s") rfm.set_params(Datarate = dr) self.baud = not self.baud diff --git a/apps/sensors.py b/apps/sensors.py index 571e5b2..c5fc8b5 100644 --- a/apps/sensors.py +++ b/apps/sensors.py @@ -66,7 +66,7 @@ class lacross(rawsensor): @staticmethod def Create(data): - if (len(data[0]) < 5) or (crc8(data[0]) <> 0): + if (len(data[0]) < 5) or (crc8(data[0]) != 0): return if (data[0][1] & 0x0F > 9) or (data[0][2] >> 4 > 9) or (data[0][2] & 0x0F > 9): return diff --git a/raspyrfm/__init__.py b/raspyrfm/__init__.py index 0cc742e..d925782 100644 --- a/raspyrfm/__init__.py +++ b/raspyrfm/__init__.py @@ -1,4 +1,4 @@ -import rfm69 +from . import rfm69 RFM69 = 1 RFM9x = 2