Skip to content

AsyncUDP: keep track of the last sent packet and skip it while LOOPing #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 19, 2025

Conversation

Jorropo
Copy link
Member

@Jorropo Jorropo commented Aug 18, 2025

This means we don't invoke the receive handler for packets we send.

Closes meshtastic/firmware#7661 (the only needed change in meshtastic/firmware is to bump the dependencies to use this commit)

@Jorropo
Copy link
Member Author

Jorropo commented Aug 18, 2025

I've tested it and it works, it can't have the 2+ packets race bug.
It also remove the rare risk of CRC32 collisions.

@Jorropo Jorropo force-pushed the skip-looped-mudp branch 2 times, most recently from e31ab9f to 628b4fe Compare August 18, 2025 01:48
This means we don't invoke the receive handler for packets we send.
@Jorropo Jorropo force-pushed the skip-looped-mudp branch 2 times, most recently from 21d8462 to 46234a6 Compare August 18, 2025 02:15
@jp-bennett jp-bennett merged commit e9688a9 into meshtastic:master Aug 19, 2025
1 check passed
@Jorropo Jorropo deleted the skip-looped-mudp branch August 19, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants