mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-12-23 19:25:37 -05:00
Ensure that WSPR band hopping is disabled when Rig is None
Also added a new configuration query method to check if Rig is None i.e. a dummy rig. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6629 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
3b46e140af
commit
e6c59a42b5
@ -658,6 +658,11 @@ bool Configuration::is_transceiver_online () const
|
||||
return m_->rig_active_;
|
||||
}
|
||||
|
||||
bool Configuration::is_dummy_rig () const
|
||||
{
|
||||
return m_->rig_is_dummy_;
|
||||
}
|
||||
|
||||
bool Configuration::transceiver_online ()
|
||||
{
|
||||
#if WSJT_TRACE_CAT
|
||||
|
@ -157,6 +157,9 @@ public:
|
||||
// already open.
|
||||
bool transceiver_online ();
|
||||
|
||||
// check if a real rig is configured
|
||||
bool is_dummy_rig () const;
|
||||
|
||||
// Frequency resolution of the rig
|
||||
//
|
||||
// 0 - 1Hz
|
||||
|
@ -5245,7 +5245,8 @@ void MainWindow::on_pbTxNext_clicked(bool b)
|
||||
void MainWindow::WSPR_scheduling ()
|
||||
{
|
||||
m_WSPR_tx_next = false;
|
||||
if (m_config.is_transceiver_online () // need rig control for hopping
|
||||
if (m_config.is_transceiver_online () // need working rig control for hopping
|
||||
&& !m_config.is_dummy_rig ()
|
||||
&& ui->band_hopping_group_box->isChecked ()) {
|
||||
auto hop_data = m_WSPR_band_hopping.next_hop (m_auto);
|
||||
qDebug () << "hop data: period:" << hop_data.period_name_
|
||||
|
Loading…
Reference in New Issue
Block a user