mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
Don't set bandwidth on TS590 when RIG_PASSBAND_NOCHANGE is the width
https://github.com/Hamlib/Hamlib/issues/1505
This commit is contained in:
parent
cff4faba53
commit
ade62105a3
@ -250,6 +250,8 @@ static int ts590_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
||||
return kenwood_set_mode(rig, vfo, mode, width);
|
||||
}
|
||||
|
||||
if (width != RIG_PASSBAND_NOCHANGE)
|
||||
{
|
||||
if (mode == RIG_MODE_CW || mode == RIG_MODE_CWR)
|
||||
{
|
||||
const int cw_table[] = { 50, 80, 100, 150, 200, 250, 300, 400, 500, 600, 1000, 1500, 2000, 2500 };
|
||||
@ -313,6 +315,7 @@ static int ts590_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
||||
|
||||
SNPRINTF(cmd, sizeof(cmd), "SH%02d;", hwidth);
|
||||
retval = kenwood_transaction(rig, cmd, NULL, 0);
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
@ -1157,7 +1160,8 @@ static int ts590_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
||||
RETURNFUNC(RIG_OK);
|
||||
}
|
||||
|
||||
static int ts590_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||
static int ts590_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||
int status)
|
||||
{
|
||||
char cmdbuf[20];
|
||||
int retval;
|
||||
@ -1183,7 +1187,8 @@ static int ts590_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int sta
|
||||
RETURNFUNC(retval);
|
||||
}
|
||||
|
||||
static int ts590_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||
static int ts590_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||
int *status)
|
||||
{
|
||||
int retval;
|
||||
|
||||
@ -1216,7 +1221,8 @@ static int ts590_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *st
|
||||
RETURNFUNC(retval);
|
||||
}
|
||||
|
||||
static int ts590_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||
static int ts590_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||
value_t val)
|
||||
{
|
||||
int retval;
|
||||
|
||||
@ -1435,7 +1441,8 @@ static int ts590_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_
|
||||
RETURNFUNC(retval);
|
||||
}
|
||||
|
||||
static int ts590_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||
static int ts590_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||
value_t *val)
|
||||
{
|
||||
int retval;
|
||||
int value;
|
||||
@ -1694,7 +1701,7 @@ struct rig_caps ts590_caps =
|
||||
RIG_MODEL(RIG_MODEL_TS590S),
|
||||
.model_name = "TS-590S",
|
||||
.mfg_name = "Kenwood",
|
||||
.version = BACKEND_VER ".13",
|
||||
.version = BACKEND_VER ".14",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||
|
Loading…
Reference in New Issue
Block a user