1
0
Fork 0

Merge pull request #125 from juribeparada/master

Fix Wires-X SEARCH reply length
ycs232-kbc
Jonathan Naylor 6 years ago committed by GitHub
commit b59c5a8b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save