mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-12 11:22:12 -04:00
Fix edge case in transmission handling
This commit is contained in:
parent
afce928149
commit
1b443c5971
1 changed files with 3 additions and 1 deletions
|
@ -538,7 +538,9 @@ void transmit(RadioInterface* radio, uint16_t size) {
|
|||
|
||||
written++;
|
||||
|
||||
if (written == 255) {
|
||||
// Only start a new packet if this is a split packet and it has
|
||||
// exceeded the length of a single packet
|
||||
if (written == 255 && header & 0x0F) {
|
||||
radio->endPacket(); radio->addAirtime(written);
|
||||
radio->beginPacket();
|
||||
radio->write(header);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue