Only respond to allcalls once per beacon interval

This commit is contained in:
Jordan Sherer
2018-07-21 16:57:42 -04:00
parent 8638b53e45
commit a672668c3a
+2 -2
View File
@@ -8327,8 +8327,8 @@ void MainWindow::displayActivity(bool force){
continue; continue;
} }
// TODO: jsherer - check to make sure we haven't replied to their allcall recently (in the past 5 minutes) // TODO: jsherer - check to make sure we haven't replied to their allcall recently (in the past beacon interval)
if(isAllCall && m_txAllcallCommandCache.contains(d.from) && m_txAllcallCommandCache[d.from]->secsTo(QDateTime::currentDateTimeUtc()) < 300){ if(isAllCall && m_txAllcallCommandCache.contains(d.from) && m_txAllcallCommandCache[d.from]->secsTo(QDateTime::currentDateTimeUtc())/60 < m_config.beacon()){
continue; continue;
} }