gioblu / PJON

PJON (Padded Jittering Operative Network) is an experimental, arduino-compatible, multi-master, multi-media network protocol.
Other
2.73k stars 239 forks source link

Fix undefined behavior when using ports #406 #408

Closed rainerschoe closed 2 years ago

rainerschoe commented 2 years ago

fixes #406 I tested this in my setup, using port 0,1 and 2. Now receiving works again :) I also implemented it a little bit different that proposed in the issue. I now use explicit re-initialization of the PacketInfo variable to avoid similar problems in other scenarios (packet-id, bus-id) which in my opinition might suffer from the same problem.

gioblu commented 2 years ago

Thank you very much @rainerschoe