pull/252/head
Michael Black W9MDB 2020-05-11 22:39:10 -05:00
rodzic 5756383bc1
commit 2813f0ef63
25 zmienionych plików z 186 dodań i 101 usunięć

Wyświetl plik

@ -1333,8 +1333,10 @@ int aor_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -808,8 +808,10 @@ int ar3030_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1757,8 +1757,10 @@ static int ar7030p_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1056,8 +1056,10 @@ int ic746pro_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -270,6 +270,7 @@ static int ic910_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
/* start off by reading the current VFO frequency */ /* start off by reading the current VFO frequency */
if ((retval = icom_get_freq(rig, RIG_VFO_CURR, &origfreq)) != RIG_OK) { return retval; } if ((retval = icom_get_freq(rig, RIG_VFO_CURR, &origfreq)) != RIG_OK) { return retval; }
vfo_save = rig->state.current_vfo; vfo_save = rig->state.current_vfo;
rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s\n", __func__, rig_strvfo(vfo)); rig_debug(RIG_DEBUG_TRACE, "%s: vfo=%s\n", __func__, rig_strvfo(vfo));

Wyświetl plik

@ -973,7 +973,8 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{ {
if (RIG_OK != (retval = icom_vfo_op(rig, vfo, RIG_OP_XCHG))) if (RIG_OK != (retval = icom_vfo_op(rig, vfo, RIG_OP_XCHG)))
{ {
rig_debug(RIG_DEBUG_ERR, "%s: vfo_op XCHG failed: %s\n", __func__, rigerror(retval)); rig_debug(RIG_DEBUG_ERR, "%s: vfo_op XCHG failed: %s\n", __func__,
rigerror(retval));
return retval; return retval;
} }
@ -985,12 +986,16 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (retval != RIG_OK) if (retval != RIG_OK)
{ {
int retval2; int retval2;
rig_debug(RIG_DEBUG_ERR, "%s: 2nd set freq failed: %s\n", __func__, rigerror(retval)); rig_debug(RIG_DEBUG_ERR, "%s: 2nd set freq failed: %s\n", __func__,
rigerror(retval));
if (RIG_OK != (retval2 = icom_vfo_op(rig, vfo, RIG_OP_XCHG))) if (RIG_OK != (retval2 = icom_vfo_op(rig, vfo, RIG_OP_XCHG)))
{ {
rig_debug(RIG_DEBUG_ERR, "%s: 2nd vfo_op XCHG failed: %s\n", __func__, rigerror(retval)); rig_debug(RIG_DEBUG_ERR, "%s: 2nd vfo_op XCHG failed: %s\n", __func__,
rigerror(retval));
return retval2; return retval2;
} }
return retval; return retval;
} }
} }
@ -998,7 +1003,8 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
if (retval != RIG_OK) if (retval != RIG_OK)
{ {
rig_debug(RIG_DEBUG_ERR, "%s: set freq failed: %s\n", __func__, rigerror(retval)); rig_debug(RIG_DEBUG_ERR, "%s: set freq failed: %s\n", __func__,
rigerror(retval));
return retval; return retval;
} }
} }
@ -1021,14 +1027,19 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
priv->curr_freq = freq; priv->curr_freq = freq;
switch(vfo) switch (vfo)
{ {
case RIG_VFO_A: priv->vfoa_freq = freq;break; case RIG_VFO_A: priv->vfoa_freq = freq; break;
case RIG_VFO_B: priv->vfob_freq = freq;break;
case RIG_VFO_MAIN: priv->sub_freq = freq;break; case RIG_VFO_B: priv->vfob_freq = freq; break;
case RIG_VFO_SUB: priv->main_freq = freq;break;
case RIG_VFO_MAIN: priv->sub_freq = freq; break;
case RIG_VFO_SUB: priv->main_freq = freq; break;
default: default:
rig_debug(RIG_DEBUG_ERR,"%s: unknown VFO? VFO=%s\n", __func__, rig_strvfo(vfo)); rig_debug(RIG_DEBUG_ERR, "%s: unknown VFO? VFO=%s\n", __func__,
rig_strvfo(vfo));
} }
return RIG_OK; return RIG_OK;
@ -1058,12 +1069,17 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (rig->caps->rig_model == RIG_MODEL_IC910) if (rig->caps->rig_model == RIG_MODEL_IC910)
{ {
ptt_t ptt; ptt_t ptt;
retval = rig_get_ptt(rig,RIG_VFO_CURR,&ptt); retval = rig_get_ptt(rig, RIG_VFO_CURR, &ptt);
if (retval != RIG_OK) {
if (retval != RIG_OK)
{
return retval; return retval;
} }
if (ptt) {
rig_debug(RIG_DEBUG_TRACE, "%s: split is on so returning last known freq\n", __func__); if (ptt)
{
rig_debug(RIG_DEBUG_TRACE, "%s: split is on so returning last known freq\n",
__func__);
*freq = priv->vfoa_freq; *freq = priv->vfoa_freq;
return RIG_OK; return RIG_OK;
} }
@ -1124,7 +1140,8 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (vfo == RIG_VFO_CURR) if (vfo == RIG_VFO_CURR)
{ {
vfo = priv->curr_vfo; vfo = priv->curr_vfo;
rig_debug(RIG_DEBUG_VERBOSE, "%s: CurrVFO changed to %s\n", __func__, rig_strvfo(vfo)); rig_debug(RIG_DEBUG_VERBOSE, "%s: CurrVFO changed to %s\n", __func__,
rig_strvfo(vfo));
} }
@ -1144,13 +1161,16 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_RX requested, new vfo=%s\n", __func__, rig_debug(RIG_DEBUG_TRACE, "%s: VFO_RX requested, new vfo=%s\n", __func__,
rig_strvfo(vfo)); rig_strvfo(vfo));
} }
else if (vfo == RIG_VFO_TX) { else if (vfo == RIG_VFO_TX)
{
if (rig->state.vfo_list == VFO_HAS_MAIN_SUB_A_B_ONLY) if (rig->state.vfo_list == VFO_HAS_MAIN_SUB_A_B_ONLY)
{ {
vfo = RIG_VFO_A; vfo = RIG_VFO_A;
if (priv->split_on) vfo = RIG_VFO_B;
else if (priv->satmode) vfo = RIG_VFO_SUB; if (priv->split_on) { vfo = RIG_VFO_B; }
else if (priv->satmode) { vfo = RIG_VFO_SUB; }
} }
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_TX requested, new vfo=%s\n", __func__, rig_debug(RIG_DEBUG_TRACE, "%s: VFO_TX requested, new vfo=%s\n", __func__,
rig_strvfo(vfo)); rig_strvfo(vfo));
} }
@ -1218,14 +1238,19 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (vfo == RIG_VFO_MEM && civ_731_mode) { priv->civ_731_mode = 1; } if (vfo == RIG_VFO_MEM && civ_731_mode) { priv->civ_731_mode = 1; }
switch(vfo) switch (vfo)
{ {
case RIG_VFO_A: priv->vfoa_freq = *freq;break; case RIG_VFO_A: priv->vfoa_freq = *freq; break;
case RIG_VFO_B: priv->vfob_freq = *freq;break;
case RIG_VFO_MAIN: priv->sub_freq = *freq;break; case RIG_VFO_B: priv->vfob_freq = *freq; break;
case RIG_VFO_SUB: priv->main_freq = *freq;break;
case RIG_VFO_MAIN: priv->sub_freq = *freq; break;
case RIG_VFO_SUB: priv->main_freq = *freq; break;
default: default:
rig_debug(RIG_DEBUG_ERR,"%s: unknown VFO? VFO=%s\n", __func__, rig_strvfo(vfo)); rig_debug(RIG_DEBUG_ERR, "%s: unknown VFO? VFO=%s\n", __func__,
rig_strvfo(vfo));
} }
return RIG_OK; return RIG_OK;
@ -1996,7 +2021,8 @@ int icom_set_vfo(RIG *rig, vfo_t vfo)
case RIG_VFO_TX: case RIG_VFO_TX:
icvfo = priv->split_on ? S_VFOB : S_VFOA; icvfo = priv->split_on ? S_VFOB : S_VFOA;
vfo = priv->split_on ? RIG_VFO_B : RIG_VFO_A; vfo = priv->split_on ? RIG_VFO_B : RIG_VFO_A;
rig_debug(RIG_DEBUG_TRACE,"%s: RIG_VFO_TX changing vfo to %s\n", __func__, rig_strvfo(vfo)); rig_debug(RIG_DEBUG_TRACE, "%s: RIG_VFO_TX changing vfo to %s\n", __func__,
rig_strvfo(vfo));
break; break;
case RIG_VFO_VFO: case RIG_VFO_VFO:
@ -3947,16 +3973,22 @@ int icom_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
rs = &rig->state; rs = &rig->state;
priv = (struct icom_priv_data *) rs->priv; priv = (struct icom_priv_data *) rs->priv;
rig_debug(RIG_DEBUG_VERBOSE, "%s: ic910#1\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: ic910#1\n", __func__);
if (rig->caps->rig_model == RIG_MODEL_IC910) if (rig->caps->rig_model == RIG_MODEL_IC910)
{ {
ptt_t ptt; ptt_t ptt;
rig_debug(RIG_DEBUG_VERBOSE, "%s: ic910#2\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: ic910#2\n", __func__);
retval = rig_get_ptt(rig,RIG_VFO_CURR,&ptt); retval = rig_get_ptt(rig, RIG_VFO_CURR, &ptt);
if (retval != RIG_OK) {
if (retval != RIG_OK)
{
return retval; return retval;
} }
if (ptt) {
rig_debug(RIG_DEBUG_TRACE, "%s: split is on so returning last known freq\n", __func__); if (ptt)
{
rig_debug(RIG_DEBUG_TRACE, "%s: split is on so returning last known freq\n",
__func__);
*tx_freq = priv->vfob_freq; *tx_freq = priv->vfob_freq;
return RIG_OK; return RIG_OK;
} }
@ -4035,7 +4067,9 @@ int icom_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
{ {
return retval; return retval;
} }
priv->vfob_freq = *tx_freq; priv->vfob_freq = *tx_freq;
if (RIG_OK != (retval = icom_vfo_op(rig, vfo, RIG_OP_XCHG))) if (RIG_OK != (retval = icom_vfo_op(rig, vfo, RIG_OP_XCHG)))
{ {
return retval; return retval;
@ -4637,7 +4671,8 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
if (VFO_HAS_A_B && (tx_vfo == RIG_VFO_A || tx_vfo == RIG_VFO_B)) if (VFO_HAS_A_B && (tx_vfo == RIG_VFO_A || tx_vfo == RIG_VFO_B))
{ {
rig_debug(RIG_DEBUG_TRACE, "%s: vfo clause 2\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s: vfo clause 2\n", __func__);
rig_debug(RIG_DEBUG_TRACE, "%s: rx_vfo to VFO_A, tx_vfo to VFO_B because tx_vfo=%s\n", __func__, rig_debug(RIG_DEBUG_TRACE,
"%s: rx_vfo to VFO_A, tx_vfo to VFO_B because tx_vfo=%s\n", __func__,
rig_strvfo(tx_vfo)); rig_strvfo(tx_vfo));
priv->tx_vfo = RIG_VFO_B; priv->tx_vfo = RIG_VFO_B;

Wyświetl plik

@ -419,8 +419,10 @@ int icr75_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -720,8 +720,10 @@ int ic10_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -717,6 +717,7 @@ int kenwood_open(RIG *rig)
rig_debug(RIG_DEBUG_TRACE, "%s: got PS0 so powerup\n", __func__); rig_debug(RIG_DEBUG_TRACE, "%s: got PS0 so powerup\n", __func__);
rig_set_powerstat(rig, 1); rig_set_powerstat(rig, 1);
} }
err = RIG_OK; // reset our err back to OK for later checks err = RIG_OK; // reset our err back to OK for later checks
} }
@ -3921,8 +3922,10 @@ int kenwood_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -569,8 +569,10 @@ int pihspdr_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -2229,8 +2229,10 @@ int th_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1410,8 +1410,10 @@ static int thd72_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1327,8 +1327,10 @@ static int thd74_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1936,8 +1936,10 @@ int tmd710_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -652,8 +652,10 @@ int tmv7_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -596,8 +596,10 @@ int ts2000_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -332,8 +332,10 @@ int prm80_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -644,8 +644,10 @@ int uniden_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -3171,8 +3171,10 @@ int ft1000d_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -3118,8 +3118,10 @@ int ft990_get_channel(RIG *rig, channel_t *chan, int read_only)
if (!read_only) if (!read_only)
{ {
// Set rig to channel values // Set rig to channel values
rig_debug(RIG_DEBUG_ERR, "%s: please contact hamlib mailing list to implement this\n", __func__); rig_debug(RIG_DEBUG_ERR,
rig_debug(RIG_DEBUG_ERR, "%s: need to know if rig updates when channel read or not\n", __func__); "%s: please contact hamlib mailing list to implement this\n", __func__);
rig_debug(RIG_DEBUG_ERR,
"%s: need to know if rig updates when channel read or not\n", __func__);
return -RIG_ENIMPL; return -RIG_ENIMPL;
} }

Wyświetl plik

@ -1262,6 +1262,7 @@ int newcat_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
freq_t freq; freq_t freq;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (newcat_is_rig(rig, RIG_MODEL_FT991)) if (newcat_is_rig(rig, RIG_MODEL_FT991))
{ {
freq = 0; freq = 0;
@ -1294,9 +1295,11 @@ int newcat_set_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t offs)
return RIG_OK; return RIG_OK;
} }
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s%04li%c", command, offs, cat_term); snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s%04li%c", command, offs,
cat_term);
return newcat_set_cmd(rig); return newcat_set_cmd(rig);
} }
return -RIG_ENAVAIL; return -RIG_ENAVAIL;
} }
@ -1360,6 +1363,7 @@ int newcat_get_rptr_offs(RIG *rig, vfo_t vfo, shortfreq_t *offs)
{ {
return -RIG_ENAVAIL; return -RIG_ENAVAIL;
} }
return RIG_OK; return RIG_OK;
} }

Wyświetl plik

@ -1191,6 +1191,7 @@ static int twiddling(RIG *rig)
return 1; // would be better as error but other software won't handle it return 1; // would be better as error but other software won't handle it
} }
} }
return 0; // return 0; //
} }
@ -1364,7 +1365,9 @@ int HAMLIB_API rig_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|| vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo) || vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo)
{ {
retcode = caps->get_freq(rig, vfo, freq); retcode = caps->get_freq(rig, vfo, freq);
if (retcode == RIG_OK) {
if (retcode == RIG_OK)
{
rig->state.cache.freq = *freq; rig->state.cache.freq = *freq;
rig->state.cache.vfo_freq = vfo; rig->state.cache.vfo_freq = vfo;
} }
@ -1820,7 +1823,8 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo)
} }
else else
{ {
rig_debug(RIG_DEBUG_ERR, "%s: set_vfo %s failed with '%s'\n", __func__, rig_strvfo(vfo), rigerror(retcode)); rig_debug(RIG_DEBUG_ERR, "%s: set_vfo %s failed with '%s'\n", __func__,
rig_strvfo(vfo), rigerror(retcode));
} }
// we need to update our internal freq to avoid getting detected as twiddling // we need to update our internal freq to avoid getting detected as twiddling

Wyświetl plik

@ -761,9 +761,12 @@ int set_channel_data(RIG *rig,
break; break;
} }
} }
if (j == CHANLSTSIZ) {
if (j == CHANLSTSIZ)
{
return -RIG_EINVAL; return -RIG_EINVAL;
} }
printf("Requested channel number %d, list number %d\n", n, j); printf("Requested channel number %d, list number %d\n", n, j);
mem_caps = &rig->state.chan_list[j].mem_caps; mem_caps = &rig->state.chan_list[j].mem_caps;

Wyświetl plik

@ -736,7 +736,8 @@ static int handle_ts2000(void *arg)
int retval = rig_get_freq(my_rig, RIG_VFO_A, &freq); int retval = rig_get_freq(my_rig, RIG_VFO_A, &freq);
char response[64]; char response[64];
// cppcheck-suppress * // cppcheck-suppress *
char *fmt = "IF%011"PRIll"%04d+%05d%1d%1d%1d%02d%1d%1"PRIll"%1d%1d%1d%1d%02d%1d;"; char *fmt =
"IF%011"PRIll"%04d+%05d%1d%1d%1d%02d%1d%1"PRIll"%1d%1d%1d%1d%02d%1d;";
if (retval != RIG_OK) if (retval != RIG_OK)
{ {