HB should only move freq if necessary

This commit is contained in:
Jordan Sherer 2019-01-16 00:39:15 -05:00
parent aae1c20f12
commit bf2bfa28be

View File

@ -6834,7 +6834,14 @@ void MainWindow::sendHeartbeat(){
QString message = parts.join(" ").trimmed();
auto f = m_config.heartbeat_anywhere() ? -1 : findFreeFreqOffset(500, 1000, 50);
auto f = findFreeFreqOffset(500, 1000, 50);
if(currentFreqOffset() <= 1000){
f = currentFreqOffset();
}
else if(m_config.heartbeat_anywhere()){
f = -1;
}
enqueueMessage(PriorityLow, message, f, [this](){ /* */ });
}