Fixed incremental directed message receipt for ALLCALL and GROUPCALL

This commit is contained in:
Jordan Sherer 2018-10-10 13:35:52 -04:00
parent 52177a0513
commit 3e38067561

View File

@ -8191,7 +8191,12 @@ void MainWindow::processRxActivity() {
bool shouldDisplay = abs(d.freq - currentFreqOffset()) <= 10;
int prevOffset = d.freq;
if(hasExistingMessageBuffer(d.freq, false, &prevOffset) && m_messageBuffer[prevOffset].cmd.to == m_config.my_callsign()){
if(hasExistingMessageBuffer(d.freq, false, &prevOffset) && (
(m_messageBuffer[prevOffset].cmd.to == m_config.my_callsign()) ||
(isAllCallIncluded(m_messageBuffer[prevOffset].cmd.to) && !ui->selcalButton->isChecked()) ||
(isGroupCallIncluded(m_messageBuffer[prevOffset].cmd.to) && abs(prevOffset - currentFreqOffset()) <= 125)
)
){
d.isBuffered = true;
shouldDisplay = true;
} else {