diff --git a/YSF2DMR/WiresX.cpp b/YSF2DMR/WiresX.cpp index 348465f..ce7c8a0 100644 --- a/YSF2DMR/WiresX.cpp +++ b/YSF2DMR/WiresX.cpp @@ -829,7 +829,7 @@ void CWiresX::sendAllReply() 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 @@ -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); diff --git a/YSF2NXDN/WiresX.cpp b/YSF2NXDN/WiresX.cpp index 58d1cd6..07964b2 100644 --- a/YSF2NXDN/WiresX.cpp +++ b/YSF2NXDN/WiresX.cpp @@ -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); diff --git a/YSF2P25/WiresX.cpp b/YSF2P25/WiresX.cpp index 58d1cd6..07964b2 100644 --- a/YSF2P25/WiresX.cpp +++ b/YSF2P25/WiresX.cpp @@ -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);