pull/574/head
Michael Black W9MDB 2021-02-28 06:58:43 +01:00
commit 7ac58fcd23
4 zmienionych plików z 13 dodań i 2 usunięć

Wyświetl plik

@ -283,6 +283,14 @@ int elecraft_open(RIG *rig)
it's not supported */
}
// For rigs like K3X vfo emulation need to set VFO_A to start
vfo_t vfo;
rig_get_vfo(rig, &vfo);
if (vfo != RIG_VFO_A && vfo != RIG_VFO_B)
{
rig_set_vfo(rig, RIG_VFO_A);
}
return RIG_OK;
}

Wyświetl plik

@ -309,7 +309,7 @@ th_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
kmode = rmode2kenwood(mode, priv->mode_table);
if (kmode == -1)
if (kmode < 0)
{
rig_debug(RIG_DEBUG_WARN, "%s: Unsupported Mode value '%s'\n",
__func__, rig_strrmode(mode));

Wyświetl plik

@ -470,7 +470,7 @@ int thd74_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
{
kmode = rmode2kenwood(mode, priv->mode_table);
if (kmode == -1)
if (kmode < 0)
{
rig_debug(RIG_DEBUG_WARN, "%s: Unsupported Mode value '%s'\n",
__func__, rig_strrmode(mode));

Wyświetl plik

@ -776,6 +776,8 @@ static void *read_device(void *p)
return NULL;
}
#if defined(HAVE_PTHREAD) && defined(HAVE_SOCKETPAIR) && defined(HAVE_SELECT)
//
// This is the right place to ensure that a heartbeat is sent
// to the microham device regularly (15 sec delay is the maximum
@ -785,6 +787,7 @@ static void *read_device(void *p)
{
heartbeat();
}
#endif
//
// Wait for something to arrive, either from the microham device