From 0b951a05e78947faa58ffa438d22b4feeb3a1672 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Mon, 7 Mar 2022 10:50:21 +0100 Subject: [PATCH] Add an option to disable the Tune watchdog. --- Configuration.cpp | 6 ++++++ Configuration.hpp | 1 + Configuration.ui | 15 +++++++++++---- widgets/mainwindow.cpp | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Configuration.cpp b/Configuration.cpp index 661a42d6e..b8fc2e0de 100644 --- a/Configuration.cpp +++ b/Configuration.cpp @@ -646,6 +646,7 @@ private: bool TX_messages_; bool enable_VHF_features_; bool decode_at_52s_; + bool Tune_watchdog_disabled_; bool single_decode_; bool twoPass_; bool bSpecialOp_; @@ -755,6 +756,7 @@ int Configuration::watchdog () const {return m_->watchdog_;} bool Configuration::TX_messages () const {return m_->TX_messages_;} bool Configuration::enable_VHF_features () const {return m_->enable_VHF_features_;} bool Configuration::decode_at_52s () const {return m_->decode_at_52s_;} +bool Configuration::Tune_watchdog_disabled () const {return m_->Tune_watchdog_disabled_;} bool Configuration::single_decode () const {return m_->single_decode_;} bool Configuration::twoPass() const {return m_->twoPass_;} bool Configuration::x2ToneSpacing() const {return m_->x2ToneSpacing_;} @@ -1355,6 +1357,7 @@ void Configuration::impl::initialize_models () ui_->TX_messages_check_box->setChecked (TX_messages_); ui_->enable_VHF_features_check_box->setChecked(enable_VHF_features_); ui_->decode_at_52s_check_box->setChecked(decode_at_52s_); + ui_->disable_Tune_watchdog_check_box->setChecked(Tune_watchdog_disabled_); ui_->single_decode_check_box->setChecked(single_decode_); ui_->cbTwoPass->setChecked(twoPass_); ui_->gbSpecialOpActivity->setChecked(bSpecialOp_); @@ -1572,6 +1575,7 @@ void Configuration::impl::read_settings () TX_messages_ = settings_->value ("Tx2QSO", true).toBool (); enable_VHF_features_ = settings_->value("VHFUHF",false).toBool (); decode_at_52s_ = settings_->value("Decode52",false).toBool (); + Tune_watchdog_disabled_ = settings_->value("TuneWatchdogDisabled",false).toBool (); single_decode_ = settings_->value("SingleDecode",false).toBool (); twoPass_ = settings_->value("TwoPass",true).toBool (); bSpecialOp_ = settings_->value("SpecialOpActivity",false).toBool (); @@ -1708,6 +1712,7 @@ void Configuration::impl::write_settings () settings_->setValue ("SplitMode", QVariant::fromValue (rig_params_.split_mode)); settings_->setValue ("VHFUHF", enable_VHF_features_); settings_->setValue ("Decode52", decode_at_52s_); + settings_->setValue ("TuneWatchdogDisabled", Tune_watchdog_disabled_); settings_->setValue ("SingleDecode", single_decode_); settings_->setValue ("TwoPass", twoPass_); settings_->setValue ("SelectedActivity", SelectedActivity_); @@ -2138,6 +2143,7 @@ void Configuration::impl::accept () azel_directory_.setPath (ui_->azel_path_display_label->text ()); enable_VHF_features_ = ui_->enable_VHF_features_check_box->isChecked (); decode_at_52s_ = ui_->decode_at_52s_check_box->isChecked (); + Tune_watchdog_disabled_ = ui_->disable_Tune_watchdog_check_box->isChecked (); single_decode_ = ui_->single_decode_check_box->isChecked (); twoPass_ = ui_->cbTwoPass->isChecked (); bSpecialOp_ = ui_->gbSpecialOpActivity->isChecked (); diff --git a/Configuration.hpp b/Configuration.hpp index c4cf068ec..2773201a0 100644 --- a/Configuration.hpp +++ b/Configuration.hpp @@ -134,6 +134,7 @@ public: bool split_mode () const; bool enable_VHF_features () const; bool decode_at_52s () const; + bool Tune_watchdog_disabled () const; bool single_decode () const; bool twoPass() const; bool bFox() const; diff --git a/Configuration.ui b/Configuration.ui index c538b0be6..78c11fdc2 100644 --- a/Configuration.ui +++ b/Configuration.ui @@ -517,6 +517,13 @@ quiet period when decoding is done. + + + + Disable Tune watchdog + + + @@ -3268,13 +3275,13 @@ Right click for insert and delete options. + + + + - - - - diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 04ed1539e..4b1c97361 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7057,7 +7057,7 @@ void MainWindow::on_rptSpinBox_valueChanged(int n) void MainWindow::on_tuneButton_clicked (bool checked) { - tuneATU_Timer.start (120000); // tune watchdog (120s) + if (!m_config.Tune_watchdog_disabled ()) tuneATU_Timer.start (90000); // tune watchdog (90s) static bool lastChecked = false; if (lastChecked == checked) return; lastChecked = checked;