kopia lustrzana https://github.com/Hamlib/Hamlib
source warnings cleanup: #if-0 out a few unused routines
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3063 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.13
rodzic
fbb353503a
commit
ad1cf04ea7
|
@ -223,6 +223,7 @@ static struct ext_list *alloc_init_ext( const struct confparams *cfp )
|
|||
return elp;
|
||||
}
|
||||
|
||||
#if 0 /* unused; re-enabled as needed. */
|
||||
static struct ext_list *find_ext( struct ext_list *elp, token_t token )
|
||||
{
|
||||
int i;
|
||||
|
@ -237,6 +238,7 @@ static struct ext_list *find_ext( struct ext_list *elp, token_t token )
|
|||
|
||||
return NULL;
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
static int ar7030p_init( RIG *rig )
|
||||
{
|
||||
|
@ -662,6 +664,7 @@ static int ar7030p_get_mode( RIG * rig, vfo_t vfo, rmode_t * mode,
|
|||
* /param id Pointer to channel ident string (14 chars)
|
||||
*
|
||||
*/
|
||||
#if 0 /* unused; re-enabled as needed. */
|
||||
static void ar7030p_get_memory( RIG * rig, const unsigned int chan,
|
||||
double *const freq, unsigned char *const mode,
|
||||
unsigned char *const filt, unsigned char *const pbs,
|
||||
|
@ -766,6 +769,7 @@ static void ar7030p_get_memory( RIG * rig, const unsigned int chan,
|
|||
}
|
||||
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
/*
|
||||
* /brief Set receiver levels
|
||||
|
|
|
@ -100,11 +100,6 @@ static int dttsp_ipc_cleanup(RIG *rig);
|
|||
static int dttsp_ipc_open(RIG *rig);
|
||||
static int dttsp_ipc_close(RIG *rig);
|
||||
|
||||
static int dttsp_udp_init(RIG *rig);
|
||||
static int dttsp_udp_cleanup(RIG *rig);
|
||||
static int dttsp_udp_open(RIG *rig);
|
||||
static int dttsp_udp_close(RIG *rig);
|
||||
|
||||
static int dttsp_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||
static int dttsp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
||||
static int dttsp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
||||
|
|
|
@ -144,7 +144,9 @@ static int pcr_set_bfo_shift(RIG *rig, vfo_t vfo, int level); // J4Axx
|
|||
static int pcr_set_vsc(RIG *rig, vfo_t vfo, int level); // J50xx
|
||||
static int pcr_set_dsp(RIG *rig, vfo_t vfo, int level); // J80xx
|
||||
static int pcr_set_dsp_state(RIG *rig, vfo_t vfo, int level); // J8100=off J8101=on
|
||||
#if 0 /* unused; re-enabled as needed. */
|
||||
static int pcr_set_dsp_noise_reducer(RIG *rig, vfo_t vfo, int level); // J82xx
|
||||
#endif /* unused */
|
||||
static int pcr_set_dsp_auto_notch(RIG *rig, vfo_t vfo, int level); // J83xx
|
||||
|
||||
static int pcr_check_ok(RIG * rig);
|
||||
|
@ -1495,6 +1497,7 @@ pcr_set_dsp_state(RIG * rig, vfo_t vfo, int level)
|
|||
* the level of NR set by values 0x01 to 0x10 (1 to 16 inclusive)
|
||||
*/
|
||||
|
||||
#if 0 /* unused; re-enabled as needed. */
|
||||
int
|
||||
pcr_set_dsp_noise_reducer(RIG * rig, vfo_t vfo, int level)
|
||||
{
|
||||
|
@ -1503,6 +1506,7 @@ pcr_set_dsp_noise_reducer(RIG * rig, vfo_t vfo, int level)
|
|||
return -RIG_ENAVAIL;
|
||||
return pcr_set_level_cmd(rig, "J82", level);
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
/*
|
||||
* pcr_set_dsp_auto_notch(RIG *rig, vfo_t vfo, int level);
|
||||
|
|
|
@ -370,6 +370,7 @@ static inline int vx1700_read_op_data_raw(RIG *rig, unsigned char reply[]){
|
|||
reply, VX1700_OP_DATA_LENGTH);
|
||||
}
|
||||
|
||||
#if 0 /* unused; re-enabled as needed. */
|
||||
static int vx1700_read_vfo_data(RIG *rig, unsigned char *hwmode,
|
||||
freq_t *rx_freq, freq_t *tx_freq){
|
||||
int ret;
|
||||
|
@ -381,6 +382,7 @@ static int vx1700_read_vfo_data(RIG *rig, unsigned char *hwmode,
|
|||
if (tx_freq != NULL) *tx_freq = vx1700_read_freq_from_buf(reply + 10);
|
||||
return RIG_OK;
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
static int vx1700_read_op_data(RIG *rig, unsigned char *hwmode,
|
||||
freq_t *rx_freq, freq_t *tx_freq){
|
||||
|
|
Ładowanie…
Reference in New Issue