pull/224/head
Michael Black 2020-04-01 11:22:23 -05:00
rodzic d3b62d5e9e
commit 5773df162c
2 zmienionych plików z 11 dodań i 5 usunięć
rigs/kenwood

Wyświetl plik

@ -81,7 +81,9 @@ int ic10_transaction(RIG *rig, const char *cmd, int cmd_len, char *data,
int retval;
struct rig_state *rs;
rig_debug(RIG_DEBUG_TRACE,"%s: called cmd='%s', len=%d, data=%p, data_len=%p\n", __func__, cmd, cmd_len, data, data_len);
rig_debug(RIG_DEBUG_TRACE,
"%s: called cmd='%s', len=%d, data=%p, data_len=%p\n", __func__, cmd, cmd_len,
data, data_len);
rs = &rig->state;
@ -124,7 +126,7 @@ static int get_ic10_if(RIG *rig, char *data)
struct kenwood_priv_caps *priv = (struct kenwood_priv_caps *)rig->caps->priv;
int i, data_len, retval = RIG_EINVAL;
rig_debug(RIG_DEBUG_TRACE,"%s: called\n", __func__);
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
for (i = 0; retval != RIG_OK && i < rig->caps->retry; i++)
{

Wyświetl plik

@ -1756,9 +1756,12 @@ int kenwood_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|| RIG_MODE_RTTYR == mode))
{
char *data_cmd = "DA";
if (RIG_IS_TS950 || RIG_IS_TS950SDX) {
if (RIG_IS_TS950 || RIG_IS_TS950SDX)
{
data_cmd = "DT";
}
/* supports DATA sub modes - see above */
snprintf(buf, sizeof(buf), "%s%c", data_cmd, data_mode);
err = kenwood_transaction(rig, buf, NULL, 0);
@ -1988,7 +1991,7 @@ int kenwood_get_mode_if(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
*width = rig_passband_normal(rig, *mode);
if ( RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS850 || RIG_IS_TS950SDX)
if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS850 || RIG_IS_TS950SDX)
{
kenwood_get_filter(rig, width);
@ -3287,7 +3290,8 @@ int kenwood_get_trn(RIG *rig, int *trn)
}
/* these rigs only have AI[0|1] set commands and no AI query */
if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS790 || RIG_IS_TS850 || RIG_IS_TS950SDX)
if (RIG_IS_TS450S || RIG_IS_TS690S || RIG_IS_TS790 || RIG_IS_TS850
|| RIG_IS_TS950SDX)
{
return -RIG_ENAVAIL;
}