Skip to content

Commit

Permalink
Added check of MOTDETAT in case of real TIC
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 28, 2017
1 parent 9b8dee5 commit 9a9e754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# Try to read Data back
s=ser_recv.readline()
# Data correct ?
if s.find("Teleinfo") != -1:
if s.find("Teleinfo") != -1 or s.find("MOTDETAT ") != -1:
print "Transmission OK"
ser_recv.close()
ser_send.close()
Expand Down

0 comments on commit 9a9e754

Please sign in to comment.