Fix edge case in transmission handling

This commit is contained in:
jacob.eva 2024-10-12 12:45:20 +01:00
parent afce928149
commit 1b443c5971
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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);