kopia lustrzana https://github.com/Hamlib/Hamlib
In newcat.c only execute VS command if available
rodzic
5cce47e233
commit
157eead021
|
@ -953,8 +953,13 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
}
|
||||
|
||||
// we need to change vfos, BS, and change back
|
||||
if (newcat_valid_command(rig, "VS"))
|
||||
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "VS%d;BS%02d%c",
|
||||
vfo1, newcat_band_index(freq), cat_term);
|
||||
else
|
||||
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c",
|
||||
newcat_band_index(freq), cat_term);
|
||||
|
||||
|
||||
if (RIG_OK != (err = newcat_set_cmd(rig)))
|
||||
{
|
||||
|
@ -963,6 +968,7 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
}
|
||||
|
||||
hl_usleep(500 * 1000); // wait for BS to do it's thing and swap back
|
||||
if (newcat_valid_command(rig, "VS"))
|
||||
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "VS%d;", vfo2);
|
||||
}
|
||||
else
|
||||
|
|
Ładowanie…
Reference in New Issue