Index: limitlessled_rf/__init__.py ================================================================== --- limitlessled_rf/__init__.py +++ limitlessled_rf/__init__.py @@ -198,11 +198,11 @@ # Compute message body body = [zone, button_id, message_id] # Compute message trailer ## Include a CRC, for good measure ? - crc = 0 + crc = len(header) + len(body) + 1 for byte in header + body: crc = crc + byte crc = crc & 0xff trailer = [crc]