summaryrefslogtreecommitdiff
path: root/Transceiver/DXLabSuiteCommanderTransceiver.cpp
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2024-01-01 11:39:50 -0800
committertony mancill <tmancill@debian.org>2024-01-01 11:39:50 -0800
commitffea9660ba79a513401639a2f5d90e2fdc190fb8 (patch)
tree4e1abd6eca581d5baec48b86e213ae31138bcf5e /Transceiver/DXLabSuiteCommanderTransceiver.cpp
parent393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (diff)
New upstream version 2.7.0~rc3+repackupstream/2.7.0_rc3+repack
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);
}