mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-06 07:07:49 -04:00
Prevent redundant network communication between WSJT-X and DX Lab Suite Commander.
This commit is contained in:
parent
ea8737e9f1
commit
06d1469c10
@ -206,15 +206,18 @@ void DXLabSuiteCommanderTransceiver::do_frequency (Frequency f, MODE m, bool /*n
|
|||||||
{
|
{
|
||||||
CAT_TRACE (f << ' ' << state ());
|
CAT_TRACE (f << ' ' << state ());
|
||||||
auto f_string = frequency_to_string (f);
|
auto f_string = frequency_to_string (f);
|
||||||
auto params = ("<xcvrfreq:%1>" + f_string).arg (f_string.size ());
|
if (UNK != m && m != get_mode ())
|
||||||
simple_command (("<command:10>CmdSetFreq<parameters:%1>" + params).arg (params.size ()));
|
|
||||||
if (UNK != m)
|
|
||||||
{
|
{
|
||||||
auto m_string = map_mode (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 ());
|
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 ()));
|
simple_command (("<command:14>CmdSetFreqMode<parameters:%1>" + params).arg (params.size ()));
|
||||||
update_mode (m);
|
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);
|
update_rx_frequency (f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10500,7 +10500,7 @@ void MainWindow::remote_configure (QString const& mode, quint32 frequency_tolera
|
|||||||
{
|
{
|
||||||
if (mode.size ())
|
if (mode.size ())
|
||||||
{
|
{
|
||||||
set_mode (mode);
|
if (mode != m_mode) set_mode (mode);
|
||||||
}
|
}
|
||||||
auto is_FST4W = "FST4W" == m_mode;
|
auto is_FST4W = "FST4W" == m_mode;
|
||||||
if (frequency_tolerance != quint32_max && (ui->sbFtol->isVisible () || is_FST4W))
|
if (frequency_tolerance != quint32_max && (ui->sbFtol->isVisible () || is_FST4W))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user