mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-27 08:46:23 -04:00
dcf3bdcdbca42e0aae3dbd188e53a59f0f4a3519
The TX queue was arrival-ordered, and extended advertising is set-and-repeat: a frame that leaves first holds the radio for a whole burst. So a position update queued ahead of an ack went out first and the ack waited behind it, which is exactly backwards for the one a sender is timing out waiting on. It is now a bag rather than a ring. runOnce picks the highest-priority slot and closes the gap; equal priorities still leave oldest-first, because priority is meant to order the queue, not to reorder within itself. A full queue makes room only for something strictly more important, the same trade MeshPacketQueue::replaceLowerPriorityPacket makes for LoRa, and the slot it displaces is the newest of the least important, so a frame that has already waited its turn is not the one thrown away. Refusals are counted in txDroppedQueueFull, kept separate from txDroppedTooLarge: one says the bearer cannot carry this packet at all, the other that it could not carry it right now. The slot carries the priority because the air copy no longer does - strippedForAir drops it, being local scheduling the receiver overwrites.
…
…
…
…
…
…
Overview
This repository contains the official device firmware for Meshtastic, an open-source LoRa mesh networking project designed for long-range, low-power communication without relying on internet or cellular infrastructure. The firmware supports various hardware platforms, including ESP32, nRF52, RP2040/RP2350, and Linux-based devices.
Meshtastic enables text messaging, location sharing, and telemetry over a decentralized mesh network, making it ideal for outdoor adventures, emergency preparedness, and remote operations.
Get Started
- 🔧 Building Instructions - Learn how to compile the firmware from source.
- ⚡ Flashing Instructions - Install or update the firmware on your device.
Join our community and help improve Meshtastic! 🚀
Stats
Languages
C++
73%
C
22.8%
Python
2%
Shell
1.6%
Batchfile
0.2%
Other
0.2%
