diff --git a/mmeowlink/detect_radio_comms.py b/mmeowlink/detect_radio_comms.py index d010391..4b3ae12 100644 --- a/mmeowlink/detect_radio_comms.py +++ b/mmeowlink/detect_radio_comms.py @@ -1,6 +1,7 @@ import time from exceptions import CommsException +from mmeowlink.exceptions import CommsException,InvalidPacketReceived from hex_handling import hexify from vendors.mmcommander_link import MMCommanderLink @@ -30,6 +31,8 @@ def detect(self): hex_string = hexify(resp).upper() except CommsException as e: pass + except InvalidPacketReceived: + print "%s (N/A db) - Corrupt packet" % ts # EG: A7 12 31 23 22 5D .. .. # POS: 01234567890123456789