allow larger packets

This commit is contained in:
geeksville
2020-02-08 09:50:15 -08:00
parent b2b832c608
commit c831957c0d
3 changed files with 10 additions and 8 deletions

View File

@@ -137,6 +137,8 @@ static int16_t packetnum = 0; // packet counter, we increment per xmission
uint8_t rxlen;
uint8_t srcaddr, destaddr, id, flags;
assert(SubPacket_size < 251); // a hard limit from the radio stack (including 4 bytes of headers)
// Poll to see if we've received a packet
// if (manager.recvfromAckTimeout(radiobuf, &rxlen, 0, &srcaddr, &destaddr, &id, &flags))
// prefill rxlen with the max length we can accept - very important