Skip to content

Commit

Permalink
keep listening after InvalidPacketReceived
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand authored and oskarpearson committed Dec 2, 2016
1 parent 4a7a323 commit e193a3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mmeowlink/detect_radio_comms.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e193a3c

Please sign in to comment.