Remove read_update_delay from Yaesue files -- not used

pull/891/head
Mike Black W9MDB 2021-12-13 13:18:48 -06:00
rodzic 09aae91d37
commit 6aa7f9e9bc
13 zmienionych plików z 4 dodań i 40 usunięć

3
NEWS
Wyświetl plik

@ -6,8 +6,9 @@ Copyright (C) 2000-2021 Michael Black W9MDB, and others
Please send Hamlib bug reports to hamlib-developer@lists.sourceforge.net
Version 4.5
Version 4.x
* 202?-??-??
* Added JRC JST-145 and JST-245
Version 4.4
* 2021-12-02

Wyświetl plik

@ -80,7 +80,7 @@ CHECK="\
if test $# -eq 0 ; then
echo "See cppcheck.log when done"
echo "This takes a while to run"
strace -f cppcheck --inline-suppr \
cppcheck --inline-suppr \
-I src \
-I include \
--include=include/config.h \

Wyświetl plik

@ -247,7 +247,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft1000d_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
vfo_t split_vfo; /* TX VFO in split mode Added on 16 Dec 2016 to include FT1000D function */
split_t split; /* split active or not Added on 16 Dec 2016 to include FT1000D function */
@ -444,9 +443,6 @@ static int ft1000d_init(RIG *rig)
// Set default pacing value
priv->pacing = FT1000D_PACING_DEFAULT_VALUE;
// Set update timeout
priv->read_update_delay = FT1000D_DEFAULT_READ_TIMEOUT;
// Set operating vfo mode to current VFO changed from RIG_VFO_MAIN to RIG_VFO_A December 2016
priv->current_vfo = RIG_VFO_A;

Wyświetl plik

@ -296,7 +296,6 @@ static tone_t ft1000mp_ctcss_list[] =
struct ft1000mp_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
unsigned char
p_cmd[YAESU_CMD_LENGTH]; /* private copy of 1 constructed CAT cmd */
unsigned char update_data[2 *
@ -740,8 +739,6 @@ static int ft1000mp_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing =
FT1000MP_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT1000MP_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
RETURNFUNC(RIG_OK);
}

Wyświetl plik

@ -88,7 +88,6 @@ static int rig2mode(RIG *rig, int md, rmode_t *mode, pbwidth_t *width);
struct ft757_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
unsigned char
current_vfo; /* active VFO from last cmd , can be either RIG_VFO_A or RIG_VFO_B only */
unsigned char
@ -375,8 +374,6 @@ static int ft757_init(RIG *rig)
priv->pacing =
FT757GX_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT757GX_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_A; /* default to VFO_A ? */
return RIG_OK;

Wyświetl plik

@ -240,7 +240,6 @@ static int rig2ctcss(RIG *rig, unsigned char tn, tone_t *tone);
struct ft767_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
unsigned char
current_vfo; /* active VFO from last cmd , can be either RIG_VFO_A or RIG_VFO_B only */
unsigned char
@ -413,8 +412,6 @@ int ft767_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing = FT767GX_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT767GX_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_A; /* default to VFO_A ? */
priv->ack_cmd[0] = 00;
priv->ack_cmd[1] = 00;

Wyświetl plik

@ -230,7 +230,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft840_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
unsigned char
p_cmd[YAESU_CMD_LENGTH]; /* private copy of 1 constructed CAT cmd */
@ -400,8 +399,6 @@ static int ft840_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing = FT840_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT840_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_MAIN; /* default to whatever */
return RIG_OK;

Wyświetl plik

@ -382,7 +382,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft890_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
unsigned char
p_cmd[YAESU_CMD_LENGTH]; /* private copy of 1 constructed CAT cmd */
@ -550,8 +549,6 @@ static int ft890_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing = FT890_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT890_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_MAIN; /* default to whatever */
return RIG_OK;

Wyświetl plik

@ -403,7 +403,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft900_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
unsigned char
p_cmd[YAESU_CMD_LENGTH]; /* private copy of 1 constructed CAT cmd */
@ -572,8 +571,6 @@ static int ft900_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing = FT900_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT900_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_MAIN; /* default to whatever */
return RIG_OK;

Wyświetl plik

@ -392,7 +392,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft920_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
vfo_t split_vfo; /* TX VFO in split mode */
split_t split; /* split active or not */
@ -647,8 +646,6 @@ static int ft920_init(RIG *rig)
/* TODO: read pacing from preferences */
priv->pacing =
FT920_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
FT920_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
priv->current_vfo = RIG_VFO_A; /* default to VFO_A */
return RIG_OK;

Wyświetl plik

@ -218,7 +218,6 @@ static const yaesu_cmd_set_t ncmd[] =
struct ft990_priv_data
{
unsigned char pacing; /* pacing value */
unsigned int read_update_delay; /* depends on pacing value */
vfo_t current_vfo; /* active VFO from last cmd */
unsigned char p_cmd[YAESU_CMD_LENGTH]; /* private copy of CAT cmd */
ft990_update_data_t update_data; /* returned data */
@ -408,9 +407,6 @@ int ft990_init(RIG *rig)
// Set default pacing value
priv->pacing = FT990_PACING_DEFAULT_VALUE;
// Set update timeout
priv->read_update_delay = FT990_DEFAULT_READ_TIMEOUT;
// Set operating vfo mode to current VFO
priv->current_vfo = RIG_VFO_MAIN;

Wyświetl plik

@ -469,11 +469,6 @@ int newcat_init(RIG *rig)
priv = rig->state.priv;
/* TODO: read pacing from preferences */
// priv->pacing = NEWCAT_PACING_DEFAULT_VALUE; /* set pacing to minimum for now */
priv->read_update_delay =
NEWCAT_DEFAULT_READ_TIMEOUT; /* set update timeout to safe value */
// priv->current_vfo = RIG_VFO_MAIN; /* default to whatever */
// priv->current_vfo = RIG_VFO_A;

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean;
/* shared function version */
#define NEWCAT_VER "20211202"
#define NEWCAT_VER "20211213"
/* Hopefully large enough for future use, 128 chars plus '\0' */
#define NEWCAT_DATA_LEN 129
@ -102,9 +102,6 @@ struct newcat_priv_caps
*/
struct newcat_priv_data
{
unsigned int
read_update_delay; /* depends on pacing value */
// vfo_t current_vfo; /* active VFO from last cmd */
char cmd_str[NEWCAT_DATA_LEN]; /* command string buffer */
char
ret_data[NEWCAT_DATA_LEN]; /* returned data--max value, most are less */