mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-30 12:42:27 -04: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
5133a3d71b
commit
84d6a667f1
@ -658,6 +658,11 @@ bool Configuration::is_transceiver_online () const
|
|||||||
return m_->rig_active_;
|
return m_->rig_active_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Configuration::is_dummy_rig () const
|
||||||
|
{
|
||||||
|
return m_->rig_is_dummy_;
|
||||||
|
}
|
||||||
|
|
||||||
bool Configuration::transceiver_online ()
|
bool Configuration::transceiver_online ()
|
||||||
{
|
{
|
||||||
#if WSJT_TRACE_CAT
|
#if WSJT_TRACE_CAT
|
||||||
|
@ -157,6 +157,9 @@ public:
|
|||||||
// already open.
|
// already open.
|
||||||
bool transceiver_online ();
|
bool transceiver_online ();
|
||||||
|
|
||||||
|
// check if a real rig is configured
|
||||||
|
bool is_dummy_rig () const;
|
||||||
|
|
||||||
// Frequency resolution of the rig
|
// Frequency resolution of the rig
|
||||||
//
|
//
|
||||||
// 0 - 1Hz
|
// 0 - 1Hz
|
||||||
|
@ -5245,7 +5245,8 @@ void MainWindow::on_pbTxNext_clicked(bool b)
|
|||||||
void MainWindow::WSPR_scheduling ()
|
void MainWindow::WSPR_scheduling ()
|
||||||
{
|
{
|
||||||
m_WSPR_tx_next = false;
|
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 ()) {
|
&& ui->band_hopping_group_box->isChecked ()) {
|
||||||
auto hop_data = m_WSPR_band_hopping.next_hop (m_auto);
|
auto hop_data = m_WSPR_band_hopping.next_hop (m_auto);
|
||||||
qDebug () << "hop data: period:" << hop_data.period_name_
|
qDebug () << "hop data: period:" << hop_data.period_name_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user