Fix Wires-X SEARCH last page

This commit is contained in:
Andy CA6JAU 2019-01-27 12:50:46 -03:00
parent ae7cfe6140
commit fcebeffff8
3 changed files with 19 additions and 1 deletions

View File

@ -913,6 +913,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);

View File

@ -864,6 +864,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);

View File

@ -864,6 +864,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);