Skip to content
Snippets Groups Projects
Commit 6c951c59 authored by Vincent Namy (EDU_GE)'s avatar Vincent Namy (EDU_GE)
Browse files

Modifier protocole.py

parent 0e709799
Branches main
No related tags found
No related merge requests found
......@@ -126,9 +126,7 @@ def trame_to_msg(trame : bytes, userId :int):
msgObj = Message(trame[0], trame[1], trame[2], trame[3], trame[4:-1], trame[-1])
if msgObj.crc == sum(trame[:-1])%256:
if msgObj.dest != userId : # Not for me
return None
else:
if msgObj.dest == userId :
return msgObj
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment