From 8c204e317b08d3846c280b8c225463681d30d79f Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 21 Jul 2018 17:06:17 -0400 Subject: [PATCH] Fixed beacon postponement --- mainwindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 08ad325..5d65309 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -5632,7 +5632,7 @@ bool MainWindow::prepareNextMessageFrame() if(ui->beaconButton->isChecked()){ // bump beacon - setBeaconTimer(m_nextBeacon.addSecs(15)); + scheduleBeacon(true); } return true; @@ -5747,7 +5747,9 @@ void MainWindow::prepareBeacon(){ !ui->extFreeTextMsgEdit->toPlainText().isEmpty() || m_lastTxTime.secsTo(QDateTime::currentDateTimeUtc()) < 30 ){ - setBeaconTimer(QDateTime::currentDateTimeUtc().addSecs(30)); + if(ui->beaconButton->isChecked()){ + scheduleBeacon(true); + } return; } @@ -8382,7 +8384,10 @@ void MainWindow::displayActivity(bool force){ if(QDateTime::currentDateTimeUtc().secsTo(m_nextBeacon) >= 15){ setFreq4(f, f); ui->startTxButton->setChecked(true); - scheduleBeacon(false); + + if(ui->beaconButton->isChecked()){ + scheduleBeacon(false); + } } } }