kopia lustrzana https://github.com/Hamlib/Hamlib
For all rigs avoid setting mode while PTT is on
https://github.com/Hamlib/Hamlib/issues/737pull/739/head
rodzic
4f500ae8e8
commit
91b3d26837
14
src/rig.c
14
src/rig.c
|
@ -2216,6 +2216,13 @@ int HAMLIB_API rig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
RETURNFUNC(-RIG_EIO);
|
||||
}
|
||||
|
||||
// do not mess with mode while PTT is on
|
||||
if (rig->state.cache.ptt)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s PTT on so set_mode ignored\n", __func__);
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
caps = rig->caps;
|
||||
|
||||
if (caps->set_mode == NULL)
|
||||
|
@ -3999,6 +4006,13 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
|
|||
RETURNFUNC(-RIG_EIO);
|
||||
}
|
||||
|
||||
// do not mess with mode while PTT is on
|
||||
if (rig->state.cache.ptt)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s PTT on so set_split_mode ignored\n", __func__);
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
caps = rig->caps;
|
||||
|
||||
if (caps->set_split_mode
|
||||
|
|
Ładowanie…
Reference in New Issue