Skip to content
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

Drop packets if toPhoneQueue is full, unless it's text/RangeTest #2918

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Oct 29, 2023

If the queue for packets to be sent to a client (toPhoneQueue) is full, drop the new packet, unless it's a text message or RangeTest. This way, text messages will not be overwritten by other types of packets (telemetry, position, etc.).

I think this is the best solution until we get rid of the FreeRTOS queues (which seemed to be the idea when ArduinoThread was introduced), since we cannot easily reorder/selectively drop packets in such a queue.

@github-actions
Copy link
Contributor

🤖 Pull request artifacts

file commit
pr2918-firmware-2.2.13.2685c88.zip 2685c88

thebentern added a commit to meshtastic/artifacts that referenced this pull request Oct 29, 2023
@thebentern thebentern merged commit 8b8fffd into meshtastic:master Oct 30, 2023
56 checks passed
@GUVWAF GUVWAF deleted the textPrioToPhone branch February 18, 2024 13:23
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