kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
1c1d3394eb
commit
66b69f60a9
|
@ -978,19 +978,28 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
if (newcat_valid_command(rig, "VS"))
|
if (newcat_valid_command(rig, "VS"))
|
||||||
{
|
{
|
||||||
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "VS%d;", vfo2);
|
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "VS%d;", vfo2);
|
||||||
|
|
||||||
|
if (RIG_OK != (err = newcat_set_cmd(rig)))
|
||||||
|
{
|
||||||
|
rig_debug(RIG_DEBUG_ERR, "%s: Unexpected error with BS command#3=%s\n",
|
||||||
|
__func__, rigerror(err));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c",
|
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c",
|
||||||
newcat_band_index(freq), cat_term);
|
newcat_band_index(freq), cat_term);
|
||||||
|
|
||||||
|
if (RIG_OK != (err = newcat_set_cmd(rig)))
|
||||||
|
{
|
||||||
|
rig_debug(RIG_DEBUG_ERR, "%s: Unexpected error with BS command#2=%s\n",
|
||||||
|
__func__, rigerror(err));
|
||||||
|
}
|
||||||
|
|
||||||
|
hl_usleep(500 * 1000); // wait for BS to do it's thing
|
||||||
}
|
}
|
||||||
|
|
||||||
if (RIG_OK != (err = newcat_set_cmd(rig)))
|
|
||||||
{
|
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: Unexpected error with BS command#2=%s\n",
|
|
||||||
__func__, rigerror(err));
|
|
||||||
}
|
|
||||||
|
|
||||||
#if 0 // disable for testing
|
#if 0 // disable for testing
|
||||||
else
|
else
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
typedef char ncboolean;
|
typedef char ncboolean;
|
||||||
|
|
||||||
/* shared function version */
|
/* shared function version */
|
||||||
#define NEWCAT_VER "20220513"
|
#define NEWCAT_VER "20220601"
|
||||||
|
|
||||||
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
||||||
#define NEWCAT_DATA_LEN 129
|
#define NEWCAT_DATA_LEN 129
|
||||||
|
|
Ładowanie…
Reference in New Issue