kopia lustrzana https://github.com/Hamlib/Hamlib
Don't set bandwidth on TS590 when RIG_PASSBAND_NOCHANGE is the width
https://github.com/Hamlib/Hamlib/issues/1505pull/1506/head
rodzic
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);
|
return kenwood_set_mode(rig, vfo, mode, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (width != RIG_PASSBAND_NOCHANGE)
|
||||||
|
{
|
||||||
if (mode == RIG_MODE_CW || mode == RIG_MODE_CWR)
|
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 };
|
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);
|
SNPRINTF(cmd, sizeof(cmd), "SH%02d;", hwidth);
|
||||||
retval = kenwood_transaction(rig, cmd, NULL, 0);
|
retval = kenwood_transaction(rig, cmd, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
@ -1157,7 +1160,8 @@ static int ts590_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
||||||
RETURNFUNC(RIG_OK);
|
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];
|
char cmdbuf[20];
|
||||||
int retval;
|
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);
|
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;
|
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);
|
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;
|
int retval;
|
||||||
|
|
||||||
|
@ -1435,7 +1441,8 @@ static int ts590_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_
|
||||||
RETURNFUNC(retval);
|
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 retval;
|
||||||
int value;
|
int value;
|
||||||
|
@ -1694,7 +1701,7 @@ struct rig_caps ts590_caps =
|
||||||
RIG_MODEL(RIG_MODEL_TS590S),
|
RIG_MODEL(RIG_MODEL_TS590S),
|
||||||
.model_name = "TS-590S",
|
.model_name = "TS-590S",
|
||||||
.mfg_name = "Kenwood",
|
.mfg_name = "Kenwood",
|
||||||
.version = BACKEND_VER ".13",
|
.version = BACKEND_VER ".14",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||||
|
|
Ładowanie…
Reference in New Issue