kopia lustrzana https://github.com/Hamlib/Hamlib
Add some debug to amplifier.c
rodzic
6bfa103b32
commit
9e8c68ccdf
|
@ -451,7 +451,7 @@ int HAMLIB_API amp_close(AMP *amp)
|
||||||
|
|
||||||
if (!amp || !amp->caps)
|
if (!amp || !amp->caps)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: NULL ptr? amp=%p, amp->caps=%p\n", __func__, amp,
|
amp_debug(RIG_DEBUG_ERR, "%s: NULL ptr? amp=%p, amp->caps=%p\n", __func__, amp,
|
||||||
amp->caps);
|
amp->caps);
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -461,7 +461,7 @@ int HAMLIB_API amp_close(AMP *amp)
|
||||||
|
|
||||||
if (!rs->comm_state)
|
if (!rs->comm_state)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: comm_state=0? rs=%p, rs->comm_state=%d\n",
|
amp_debug(RIG_DEBUG_ERR, "%s: comm_state=0? rs=%p, rs->comm_state=%d\n",
|
||||||
__func__, rs, rs->comm_state);
|
__func__, rs, rs->comm_state);
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue