mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-02-24 08:24:17 +01:00
Fix missing audio detection.
This commit is contained in:
parent
d2df250496
commit
e458a3cb3f
10
DMRSlot.cpp
10
DMRSlot.cpp
|
|
@ -727,8 +727,12 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
|
|||
dmrData.getData(data + 2U);
|
||||
|
||||
if (dataType == DT_VOICE_LC_HEADER) {
|
||||
if (m_netState == RS_NET_AUDIO)
|
||||
if (m_netState == RS_NET_AUDIO) {
|
||||
// Reset the missing audio timers
|
||||
m_packetTimer.start();
|
||||
m_elapsed.start();
|
||||
return;
|
||||
}
|
||||
|
||||
CDMRFullLC fullLC;
|
||||
m_netLC = fullLC.decode(data + 2U, DT_VOICE_LC_HEADER);
|
||||
|
|
@ -828,6 +832,10 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
|
|||
bptc.decode(data + 2U, payload);
|
||||
bptc.encode(payload, data + 2U);
|
||||
|
||||
// Reset the missing audio timers
|
||||
m_packetTimer.start();
|
||||
m_elapsed.start();
|
||||
|
||||
data[0U] = TAG_DATA;
|
||||
data[1U] = 0x00U;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue