kopia lustrzana https://github.com/Hamlib/Hamlib
Change newcat.c ptt check to get_ptt instead of cache
Signalink was hanging on to PTT just a bit longer than the CAT ptt https://github.com/Hamlib/Hamlib/issues/540pull/544/head
rodzic
31b28202ee
commit
360704908b
|
@ -787,8 +787,14 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
if (vfo != rig->state.tx_vfo) return -RIG_ENTARGET;
|
||||
}
|
||||
|
||||
if (rig->state.cache.ptt ==
|
||||
RIG_PTT_ON) // we have a few rigs that can't set TX VFO while PTT_ON
|
||||
ptt_t ptt;
|
||||
if (RIG_OK != (err = newcat_get_ptt(rig, vfo, &ptt)))
|
||||
{
|
||||
ERRMSG(err, "newcat_set_cmd failed");
|
||||
RETURNFUNC(err);
|
||||
}
|
||||
|
||||
if (ptt == RIG_PTT_ON) // we have a few rigs that can't set TX VFO while PTT_ON
|
||||
{
|
||||
// should be true whether we're on VFOA or VFOB but only restricting VFOB right now
|
||||
// we return RIG_OK as we dont' want
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
typedef char ncboolean;
|
||||
|
||||
/* shared function version */
|
||||
#define NEWCAT_VER "20210130"
|
||||
#define NEWCAT_VER "20210208"
|
||||
|
||||
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
||||
#define NEWCAT_DATA_LEN 129
|
||||
|
|
Ładowanie…
Reference in New Issue