From a672668c3aa72e3ace1bba2a07a2ba6710b7fa30 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 21 Jul 2018 16:57:42 -0400 Subject: [PATCH] Only respond to allcalls once per beacon interval --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fd0a71e..08ad325 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -8327,8 +8327,8 @@ void MainWindow::displayActivity(bool force){ continue; } - // TODO: jsherer - check to make sure we haven't replied to their allcall recently (in the past 5 minutes) - if(isAllCall && m_txAllcallCommandCache.contains(d.from) && m_txAllcallCommandCache[d.from]->secsTo(QDateTime::currentDateTimeUtc()) < 300){ + // 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())/60 < m_config.beacon()){ continue; }