From 9860a6651b19f8aa8f075968814bfca117909064 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 6 Dec 2014 20:19:24 +0000 Subject: [PATCH] Set split mode before and after setting Tx frequency Also cleaned up duplicate trace output. Using teh DX Lab Suite Commander CAT interface with rigs like the TS-2000 requires that split mode be set after changing the Tx frequency. This is because setting teh Tx frequency disables split mode. With some Icom rigs the rig must be in split mode before setting the Tx frequency otherwise the Tx frequency change will not be honoured. To fix this the sequence set-split, set-tx-frequency, set-split must always be used to change the Tx frequency. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.4@4776 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- DXLabSuiteCommanderTransceiver.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/DXLabSuiteCommanderTransceiver.cpp b/DXLabSuiteCommanderTransceiver.cpp index b6f36d1e1..05d271b18 100644 --- a/DXLabSuiteCommanderTransceiver.cpp +++ b/DXLabSuiteCommanderTransceiver.cpp @@ -135,7 +135,6 @@ void DXLabSuiteCommanderTransceiver::do_tx_frequency (Frequency tx, bool /* rati if (tx) { simple_command ("CmdSplit<1:2>on"); - update_split (true); // number is localised // avoid floating point translation errors by adding a small number (0.1Hz) @@ -144,6 +143,11 @@ void DXLabSuiteCommanderTransceiver::do_tx_frequency (Frequency tx, bool /* rati // rationalises TX VFO mode and that can change the frequency on // Yaesu rigs if CW is involved simple_command ("CmdSetTxFreq" + QString ("%L1").arg (tx / 1e3 + 1e-4, 10, 'f', 3).toLocal8Bit ()); + + // set split again because on some rigs CmdSetTxFreq clears + // split mode + simple_command ("CmdSplit<1:2>on"); + update_split (true); } else { @@ -348,13 +352,6 @@ QByteArray DXLabSuiteCommanderTransceiver::command_with_reply (QByteArray const& { Q_ASSERT (commander_); - if (!no_debug) - { -#if WSJT_TRACE_CAT - qDebug () << "DXLabSuiteCommanderTransceiver:command_with_reply(" << cmd << ')'; -#endif - } - if (!write_to_port (cmd)) { #if WSJT_TRACE_CAT