Skip to content

Commit

Permalink
Merge pull request #381 from juribeparada/master
Browse files Browse the repository at this point in the history
Fix bug “DMR ghost private calls”
  • Loading branch information
g4klx authored Feb 4, 2018
2 parents 43fdb77 + 4435af9 commit af219d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DMRSlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1540,8 +1540,10 @@ void CDMRSlot::writeNetwork(const CDMRData& dmrData)
m_display->writeDMR(m_slotNo, src, gi, dst, "N");
}
} else if (dataType == DT_RATE_12_DATA || dataType == DT_RATE_34_DATA || dataType == DT_RATE_1_DATA) {
if (m_netState != RS_NET_DATA || m_netFrames == 0U)
if (m_netState != RS_NET_DATA || m_netFrames == 0U) {
writeEndNet();
return;
}

// Regenerate the rate 1/2 payload
if (dataType == DT_RATE_12_DATA) {
Expand Down

0 comments on commit af219d1

Please sign in to comment.