kopia lustrzana https://github.com/Hamlib/Hamlib
Add some debug to icom.c
rodzic
c0a3450f28
commit
71b867e141
|
@ -859,7 +859,9 @@ int icom_set_default_vfo(RIG *rig)
|
||||||
{
|
{
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: curr_vfo now %s\n", __func__, rig_strvfo(rig->state.current_vfo));
|
|
||||||
|
rig_debug(RIG_DEBUG_TRACE, "%s: curr_vfo now %s\n", __func__,
|
||||||
|
rig_strvfo(rig->state.current_vfo));
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
@ -1062,8 +1064,8 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||||
int ack_len = sizeof(ackbuf);
|
int ack_len = sizeof(ackbuf);
|
||||||
int civ_731_mode = 0; // even these rigs have 5-byte channels
|
int civ_731_mode = 0; // even these rigs have 5-byte channels
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__,
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s, curr_vfo=%s\n", __func__,
|
||||||
rig_strvfo(vfo));
|
rig_strvfo(vfo), rig_strvfo(rig->state.current_vfo));
|
||||||
rs = &rig->state;
|
rs = &rig->state;
|
||||||
priv = (struct icom_priv_data *) rs->priv;
|
priv = (struct icom_priv_data *) rs->priv;
|
||||||
|
|
||||||
|
@ -1248,6 +1250,8 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||||
rig_strvfo(vfo));
|
rig_strvfo(vfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rig_debug(RIG_DEBUG_VERBOSE, "%s exit vfo=%s, curr_vfo=%s\n", __func__,
|
||||||
|
rig_strvfo(vfo), rig_strvfo(rig->state.current_vfo));
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2153,7 +2157,8 @@ int icom_set_vfo(RIG *rig, vfo_t vfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
rig->state.current_vfo = vfo;
|
rig->state.current_vfo = vfo;
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: debug#5 curr_vfo=%s\n", __func__, rig_strvfo(rig->state.current_vfo));
|
rig_debug(RIG_DEBUG_TRACE, "%s: debug#5 curr_vfo=%s\n", __func__,
|
||||||
|
rig_strvfo(rig->state.current_vfo));
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4712,7 +4717,8 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
||||||
if ((tx_vfo == RIG_VFO_SUB || tx_vfo == RIG_VFO_MAIN)
|
if ((tx_vfo == RIG_VFO_SUB || tx_vfo == RIG_VFO_MAIN)
|
||||||
&& !rig->state.cache.satmode)
|
&& !rig->state.cache.satmode)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: VFO_SUB and satmode is off so turning satmode on\n",
|
rig_debug(RIG_DEBUG_VERBOSE,
|
||||||
|
"%s: VFO_SUB and satmode is off so turning satmode on\n",
|
||||||
__func__);
|
__func__);
|
||||||
rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, 1);
|
rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, 1);
|
||||||
rig->state.cache.satmode = 1;
|
rig->state.cache.satmode = 1;
|
||||||
|
@ -4721,7 +4727,8 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
||||||
else if ((tx_vfo == RIG_VFO_A || tx_vfo == RIG_VFO_B)
|
else if ((tx_vfo == RIG_VFO_A || tx_vfo == RIG_VFO_B)
|
||||||
&& rig->state.cache.satmode)
|
&& rig->state.cache.satmode)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: VFO_B and satmode is on so turning satmode off\n",
|
rig_debug(RIG_DEBUG_VERBOSE,
|
||||||
|
"%s: VFO_B and satmode is on so turning satmode off\n",
|
||||||
__func__);
|
__func__);
|
||||||
rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, 0);
|
rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_SATMODE, 0);
|
||||||
rig->state.cache.satmode = 0;
|
rig->state.cache.satmode = 0;
|
||||||
|
@ -4898,7 +4905,8 @@ int icom_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE,
|
rig_debug(RIG_DEBUG_VERBOSE,
|
||||||
"%s: vfo=%s curr_vfo=%s rx_vfo=%s tx_vfo=%s split=%d\n",
|
"%s: vfo=%s curr_vfo=%s rx_vfo=%s tx_vfo=%s split=%d\n",
|
||||||
__func__, rig_strvfo(vfo), rig_strvfo(rig->state.current_vfo), rig_strvfo(priv->rx_vfo),
|
__func__, rig_strvfo(vfo), rig_strvfo(rig->state.current_vfo),
|
||||||
|
rig_strvfo(priv->rx_vfo),
|
||||||
rig_strvfo(priv->tx_vfo), split);
|
rig_strvfo(priv->tx_vfo), split);
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BACKEND_VER "20200613"
|
#define BACKEND_VER "20200614"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* defines used by comp_cal_str in rig.c
|
* defines used by comp_cal_str in rig.c
|
||||||
|
|
Ładowanie…
Reference in New Issue