mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-12-24 23:19:25 -05:00
Fix edge case in transmission handling
This commit is contained in:
parent
afce928149
commit
1b443c5971
@ -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…
Reference in New Issue
Block a user