Move Barrett 4050 channel to select 9999 during open

pull/928/head
Mike Black W9MDB 2022-01-08 07:18:53 -06:00
rodzic 46055ac14a
commit 1cb47f6af4
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -87,6 +87,13 @@ static int barrett4050_open(RIG *rig)
char *response;
ENTERFUNC;
barrett4050_get_info(rig);
retval = barrett_transaction(rig, "XC9999", 0, &response);
if (retval == RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "%s: result=%s\n", __func__, response);
}
retval = barrett_transaction(rig, "IDC", 0, &response);
if (retval == RIG_OK)

Wyświetl plik

@ -277,7 +277,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (vfo != RIG_VFO_B)
{
char *response = NULL;
sprintf((char *) cmd_buf, "TC9999R%08.0f", freq);
sprintf((char *) cmd_buf, "TR%08.0f", freq);
retval = barrett_transaction(rig, cmd_buf, 0, &response);
if (retval < 0)
@ -299,7 +299,7 @@ int barrett_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{
char *response = NULL;
sprintf((char *) cmd_buf, "TC9999T%08.0f", freq);
sprintf((char *) cmd_buf, "TT%08.0f", freq);
retval = barrett_transaction(rig, cmd_buf, 0, &response);
if (retval < 0)