Skip to content
Snippets Groups Projects
Unverified Commit 265be142 authored by thoth's avatar thoth
Browse files

fix: add accept of broadcast messages

parent ed03640f
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,9 @@ def receive_message(interface, receive_all):
message = s.recv(MessageFrame.len())
message = MessageFrame.from_hex(message)
breakpoint()
if receive_all or message.dest == getHwAddr(interface):
if (receive_all
or message.dest == getHwAddr(interface)
or message.dest == '000000000000'):
print(message)
else:
print("nomesg")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment