Restrict FTDX3000 and FTDX5000 to not set_freq on VFO while PTT_ON

pull/518/head
Michael Black W9MDB 2021-01-22 08:57:53 -06:00
rodzic de3205e2b8
commit e1c21605f4
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -774,6 +774,13 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
target_vfo = 'A' == c ? '0' : '1';
if(rig->state.cache.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
if (is_ftdx3000 && target_vfo == 'B') return RIG_OK;
if (is_ftdx5000 && target_vfo == 'B') return RIG_OK;
}
if (RIG_MODEL_FT450 == caps->rig_model)
{
/* The FT450 only accepts F[A|B]nnnnnnnn; commands for the