Remove get_dsp_flt for G90 as it does not have that command

pull/1349/head
Mike Black W9MDB 2023-08-17 22:57:11 -05:00
rodzic ccd6472f03
commit 147dea7651
1 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -2761,7 +2761,12 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
rig_set_vfo(rig, vfo); // force VFO
}
retval = icom_get_dsp_flt(rig, *mode);
retval = 0;
// G90 does have dsp_flt command
if (rig->caps->rig_model != RIG_MODEL_G90)
{
retval = icom_get_dsp_flt(rig, *mode);
}
*width = retval;
if (retval == 0)
@ -2784,7 +2789,12 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
// we need to figure out how to read VFOB without swapping VFOs
//HAMLIB_TRACE;
//rig_set_vfo(rig, RIG_VFO_B);
retval = icom_get_dsp_flt(rig, *mode);
retval = 0;
if (rig->caps->rig_model != RIG_MODEL_G90)
{
retval = icom_get_dsp_flt(rig, *mode);
}
*width = retval;
if (*width == 0) { *width = rig->state.cache.widthMainA; } // we'll use VFOA's width