From fdbf1af30c34a819eaef115a56a313009e5e5f7b Mon Sep 17 00:00:00 2001 From: Elliott Liggett Date: Fri, 23 Apr 2021 11:23:27 -0700 Subject: [PATCH] work in progress on spectrum enable after power off/on. --- wfmain.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wfmain.cpp b/wfmain.cpp index 548856b..a4b37d4 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -3753,6 +3753,21 @@ void wfmain::receiveSpectrumSpan(freqt freqspan, bool isSub) void wfmain::on_rigPowerOnBtn_clicked() { emit sendPowerOn(); + if(ui->scopeEnableWFBtn->isChecked()) + { + issueDelayedCommand(cmdNone); + issueDelayedCommand(cmdNone); + // TODO: issue these two commands after a few seconds delay + // so that the rig can fully boot up. + + // idea: just change the time on the delayed command + // temporarily to a few seconds, and then back. + + // we can add two cmds to alter the time in-queue. + issueDelayedCommand(cmdDispEnable); + issueDelayedCommand(cmdSpecOn); + } + } void wfmain::on_rigPowerOffBtn_clicked()