Skip to content

Commit

Permalink
Fix bug “DMR ghost private calls”
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Feb 3, 2018
1 parent 2f99807 commit 4435af9
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 4435af9

Please sign in to comment.