mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-01 05:32:31 -04:00
Move call to tx scheduler per Bill's instructions.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5539 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
7f5b86fd36
commit
f12de9e9e6
@ -22,6 +22,7 @@ extern "C"
|
|||||||
, int * ntxnext, int my_grid_len);
|
, int * ntxnext, int my_grid_len);
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
extern int next_tx_state(int pctx);
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
@ -265,6 +266,9 @@ auto WSPRBandHopping::next_hop () -> Hop
|
|||||||
, &m_->gray_line_duration_, &m_->tx_percent_, &period_index, &band_index
|
, &m_->gray_line_duration_, &m_->tx_percent_, &period_index, &band_index
|
||||||
, &tx_next, my_grid.size ());
|
, &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_)
|
if (100 == m_->tx_percent_)
|
||||||
{
|
{
|
||||||
tx_next = 1;
|
tx_next = 1;
|
||||||
|
@ -4296,8 +4296,7 @@ void MainWindow::bandHopping()
|
|||||||
<< "tune:" << hop_data.tune_required_
|
<< "tune:" << hop_data.tune_required_
|
||||||
<< "tx:" << hop_data.tx_next_;
|
<< "tx:" << hop_data.tx_next_;
|
||||||
|
|
||||||
// if (m_auto &&hop_data.tx_next_) {
|
if (m_auto &&hop_data.tx_next_) {
|
||||||
if ( m_auto && next_tx_state(m_pctx) ) {
|
|
||||||
m_nrx = 0;
|
m_nrx = 0;
|
||||||
} else {
|
} else {
|
||||||
m_nrx = 1;
|
m_nrx = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user