Fix Wires-X SEARCH reply length

This commit is contained in:
Andy CA6JAU 2019-01-27 20:40:21 -03:00
parent c0fd8a45d4
commit 3eec7d741c

View file

@ -850,6 +850,12 @@ void CWiresX::sendSearchReply()
data[offset + 49U] = 0x0DU;
}
unsigned int k = 1029U - offset;
for(unsigned int i = 0U; i < k; i++)
data[i + offset] = 0x20U;
offset += k;
data[offset + 0U] = 0x03U; // End of data marker
data[offset + 1U] = CCRC::addCRC(data, offset + 1U);