Make the BS cmd write the band instead of read it in newcat.c

https://github.com/Hamlib/Hamlib/issues/424
pull/435/head
Michael Black W9MDB 2020-10-28 08:53:55 -05:00
rodzic 06f99b9a63
commit aeabe40acd
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -765,7 +765,8 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (newcat_valid_command(rig, "BS")
&& newcat_band_index(freq) != newcat_band_index(rig->state.current_freq))
{
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "BS%c", cat_term);
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)))
{