kopia lustrzana https://github.com/Hamlib/Hamlib
Add set_powerstat to icom.c and debug msg to rig.c
rodzic
2e74b4fa6b
commit
8ff9a682cc
|
@ -533,6 +533,7 @@ int icom_init(RIG *rig)
|
|||
priv->tx_vfo = RIG_VFO_NONE;
|
||||
priv->rx_vfo = RIG_VFO_NONE;
|
||||
priv->curr_vfo = RIG_VFO_NONE;
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: done\n", __func__);
|
||||
|
||||
return RIG_OK;
|
||||
|
@ -577,6 +578,8 @@ int icom_rig_open(RIG *rig)
|
|||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||
|
||||
rig_set_powerstat(rig,1);
|
||||
|
||||
if (priv_caps->serial_USB_echo_check)
|
||||
{
|
||||
|
||||
|
|
|
@ -3828,6 +3828,7 @@ int HAMLIB_API rig_set_powerstat(RIG *rig, powerstat_t status)
|
|||
|
||||
if (rig->caps->set_powerstat == NULL)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_WARN, "%s set_powerstat not implemented\n", __func__);
|
||||
return -RIG_ENAVAIL;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue