From 312a59bd8e4d63341f095dbf644b7b41e25c5eb7 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 28 Jan 2019 09:43:47 -0500 Subject: [PATCH] Fixed HB and HB ACK messages being delayed --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e6cc165..87be2e4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6928,7 +6928,8 @@ void MainWindow::sendHeartbeat(){ f = -1; } - enqueueMessage(PriorityLow, message, f, [this](){ /* */ }); + enqueueMessage(PriorityLow + 1, message, f, [this](){ /* */ }); + processTxQueue(); } void MainWindow::sendHeartbeatAck(QString to, int snr){ @@ -6936,7 +6937,8 @@ void MainWindow::sendHeartbeatAck(QString to, int snr){ auto f = m_config.heartbeat_anywhere() ? -1 : findFreeFreqOffset(500, 1000, 50); - enqueueMessage(PriorityLow, message, f, [this](){ /* */ }); + enqueueMessage(PriorityLow + 1, message, f, [this](){ /* */ }); + processTxQueue(); } void MainWindow::on_hbMacroButton_toggled(bool checked){