summaryrefslogtreecommitdiff
path: root/Transceiver/DXLabSuiteCommanderTransceiver.cpp
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2023-09-03 19:46:51 -0700
committertony mancill <tmancill@debian.org>2023-09-03 19:46:51 -0700
commit1fc24d9474229c0f382da5def559f5de7b903f86 (patch)
tree8a745660a498dbd6209a198679b821799f107024 /Transceiver/DXLabSuiteCommanderTransceiver.cpp
parent65e5ae53a0358d9a3d040b13e0cf84556a7b4812 (diff)
parent393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (diff)
Update upstream source from tag 'upstream/2.7.0_rc2+repack'
Update to upstream version '2.7.0~rc2+repack' with Debian dir c24f4e90e5ec8585c79007453c538689dc460e86
Diffstat (limited to 'Transceiver/DXLabSuiteCommanderTransceiver.cpp')
-rwxr-xr-xTransceiver/DXLabSuiteCommanderTransceiver.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Transceiver/DXLabSuiteCommanderTransceiver.cpp b/Transceiver/DXLabSuiteCommanderTransceiver.cpp
index 22fe7bc0..ee9e78a2 100755
--- a/Transceiver/DXLabSuiteCommanderTransceiver.cpp
+++ b/Transceiver/DXLabSuiteCommanderTransceiver.cpp
@@ -206,18 +206,15 @@ void DXLabSuiteCommanderTransceiver::do_frequency (Frequency f, MODE m, bool /*n
{
CAT_TRACE (f << ' ' << state ());
auto f_string = frequency_to_string (f);
- if (UNK != m && m != get_mode ())
+ auto params = ("<xcvrfreq:%1>" + f_string).arg (f_string.size ());
+ simple_command (("<command:10>CmdSetFreq<parameters:%1>" + params).arg (params.size ()));
+ if (UNK != m)
{
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);
}