diff --git a/WSPRBandHopping.cpp b/WSPRBandHopping.cpp index fcbcf5f8d..e85b7ebaa 100644 --- a/WSPRBandHopping.cpp +++ b/WSPRBandHopping.cpp @@ -22,6 +22,7 @@ extern "C" , int * ntxnext, int my_grid_len); #endif }; +extern int next_tx_state(int pctx); namespace { @@ -265,6 +266,9 @@ auto WSPRBandHopping::next_hop () -> Hop , &m_->gray_line_duration_, &m_->tx_percent_, &period_index, &band_index , &tx_next, my_grid.size ()); + // consult scheduler to determine if next period should be a tx interval + tx_next = next_tx_state(m_->tx_percent_); + if (100 == m_->tx_percent_) { tx_next = 1; diff --git a/mainwindow.cpp b/mainwindow.cpp index 4ef40570a..3ac945e21 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4296,8 +4296,7 @@ void MainWindow::bandHopping() << "tune:" << hop_data.tune_required_ << "tx:" << hop_data.tx_next_; -// if (m_auto &&hop_data.tx_next_) { - if ( m_auto && next_tx_state(m_pctx) ) { + if (m_auto &&hop_data.tx_next_) { m_nrx = 0; } else { m_nrx = 1;