mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Merge branch 'master' of github.com:g4klx/MMDVMHost
This commit is contained in:
@@ -133,10 +133,12 @@ void CDMRSlot::writeModem(unsigned char *data, unsigned int len)
|
|||||||
bool audioSync = (data[1U] & DMR_SYNC_AUDIO) == DMR_SYNC_AUDIO;
|
bool audioSync = (data[1U] & DMR_SYNC_AUDIO) == DMR_SYNC_AUDIO;
|
||||||
|
|
||||||
if (dataSync) {
|
if (dataSync) {
|
||||||
CDMRSlotType slotType;
|
// Get the type from the packet metadata
|
||||||
slotType.putData(data + 2U);
|
unsigned char dataType = data[1U] & 0x0FU;
|
||||||
|
|
||||||
unsigned char dataType = slotType.getDataType();
|
CDMRSlotType slotType;
|
||||||
|
slotType.setColorCode(m_colorCode);
|
||||||
|
slotType.setDataType(dataType);
|
||||||
|
|
||||||
if (dataType == DT_VOICE_LC_HEADER) {
|
if (dataType == DT_VOICE_LC_HEADER) {
|
||||||
if (m_rfState == RS_RF_AUDIO)
|
if (m_rfState == RS_RF_AUDIO)
|
||||||
|
|||||||
Reference in New Issue
Block a user