Fix FM RAW mode resampler bug.

This commit is contained in:
Jonathan Naylor
2024-07-15 13:50:58 +01:00
parent 5a0f35eca0
commit cf96a2653f
2 changed files with 7 additions and 5 deletions

View File

@@ -104,10 +104,12 @@ bool CFMNetwork::open()
}
}
#if !defined(HAS_SRC)
if ((m_protocol == FMNP_RAW) && (m_sampleRate != MMDVM_SAMPLERATE)) {
LogError("The resampler needed for non-native sample rates has not been included");
return false;
}
#endif
return m_socket.open(m_addr);
}
@@ -544,7 +546,7 @@ bool CFMNetwork::writeUSRPStart()
buffer[length++] = 0x08U;
// TLV Length
buffer[length++] = 3U + 4U + 3U + 1U + 1U + m_callsign.size() + 1U;
buffer[length++] = 3U + 4U + 3U + 1U + 1U + (unsigned char)m_callsign.size() + 1U;
// DMR Id
buffer[length++] = 0x00U;