summaryrefslogtreecommitdiff
path: root/Transceiver/DXLabSuiteCommanderTransceiver.cpp
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2024-01-01 11:39:59 -0800
committertony mancill <tmancill@debian.org>2024-01-01 11:39:59 -0800
commite90673af26fd12c1685c5528f1b4cfdd433553c6 (patch)
treee6f7bc67b3035c74b28c7e90cffe8feff73704a7 /Transceiver/DXLabSuiteCommanderTransceiver.cpp
parent94e13d3187f9ec4e4c7f1fdaf989c80a87b8aae7 (diff)
parentffea9660ba79a513401639a2f5d90e2fdc190fb8 (diff)
Update upstream source from tag 'upstream/2.7.0_rc3+repack'
Update to upstream version '2.7.0~rc3+repack' with Debian dir 9101bca1c16d979d1851d72d1d02e5b871ce863d
Diffstat (limited to 'Transceiver/DXLabSuiteCommanderTransceiver.cpp')
-rwxr-xr-xTransceiver/DXLabSuiteCommanderTransceiver.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/Transceiver/DXLabSuiteCommanderTransceiver.cpp b/Transceiver/DXLabSuiteCommanderTransceiver.cpp
index ee9e78a2..22fe7bc0 100755
--- a/Transceiver/DXLabSuiteCommanderTransceiver.cpp
+++ b/Transceiver/DXLabSuiteCommanderTransceiver.cpp
@@ -206,15 +206,18 @@ void DXLabSuiteCommanderTransceiver::do_frequency (Frequency f, MODE m, bool /*n
{
CAT_TRACE (f << ' ' << state ());
auto f_string = frequency_to_string (f);
- auto params = ("<xcvrfreq:%1>" + f_string).arg (f_string.size ());
- simple_command (("<command:10>CmdSetFreq<parameters:%1>" + params).arg (params.size ()));
- if (UNK != m)
+ if (UNK != m && m != get_mode ())
{
auto m_string = map_mode (m);
auto params = ("<xcvrfreq:%1>" + f_string + "<xcvrmode:%2>" + m_string + "<preservesplitanddual:1>Y").arg (f_string.size ()).arg (m_string.size ());
simple_command (("<command:14>CmdSetFreqMode<parameters:%1>" + params).arg (params.size ()));
update_mode (m);
}
+ else
+ {
+ auto params = ("<xcvrfreq:%1>" + f_string).arg (f_string.size ());
+ simple_command (("<command:10>CmdSetFreq<parameters:%1>" + params).arg (params.size ()));
+ }
update_rx_frequency (f);
}