Add set_dsp_flt for IC7000 -- any other Icom rigs can use this?

https://github.com/Hamlib/Hamlib/issues/521
pull/552/head
Michael Black W9MDB 2021-02-17 22:52:48 -06:00
rodzic 8f1efb6a70
commit 1e9a991a25
2 zmienionych plików z 3 dodań i 11 usunięć

Wyświetl plik

@ -1488,8 +1488,6 @@ pbwidth_t icom_get_dsp_flt(RIG *rig, rmode_t mode)
return 0; return 0;
} }
#ifdef XXREMOVEDXX
// not referenced anywhere
int icom_set_dsp_flt(RIG *rig, rmode_t mode, pbwidth_t width) int icom_set_dsp_flt(RIG *rig, rmode_t mode, pbwidth_t width)
{ {
int retval, rfstatus; int retval, rfstatus;
@ -1573,7 +1571,6 @@ int icom_set_dsp_flt(RIG *rig, rmode_t mode, pbwidth_t width)
return RIG_OK; return RIG_OK;
} }
#endif
/* /*
* icom_set_mode_with_data * icom_set_mode_with_data
@ -1762,20 +1759,15 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
return -RIG_ERJCTED; return -RIG_ERJCTED;
} }
#if 0 /* DSP filter setting ($1A$03), but not supported by every rig,
/* Tentative DSP filter setting ($1A$03), but not supported by every rig,
* and some models like IC910/Omni VI Plus have a different meaning for * and some models like IC910/Omni VI Plus have a different meaning for
* this subcommand * this subcommand
*/ */
if ((rig->caps->rig_model != RIG_MODEL_IC910) && if (rig->caps->rig_model == RIG_MODEL_IC7000)
(rig->caps->rig_model != RIG_MODEL_OMNIVIP))
{ {
icom_set_dsp_flt(rig, mode, width); icom_set_dsp_flt(rig, mode, width);
} }
#endif
return RIG_OK; return RIG_OK;
} }

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#define BACKEND_VER "20210212" #define BACKEND_VER "20210217"
/* /*
* defines used by comp_cal_str in rig.c * defines used by comp_cal_str in rig.c