kopia lustrzana https://github.com/Hamlib/Hamlib
Move ant_rx ant_tx set to after NULL check in rig.c
rodzic
a56e976787
commit
d0038fb643
|
@ -5081,8 +5081,6 @@ int HAMLIB_API rig_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option,
|
||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
*ant_tx = *ant_rx = RIG_ANT_UNKNOWN;
|
|
||||||
|
|
||||||
if (CHECK_RIG_ARG(rig))
|
if (CHECK_RIG_ARG(rig))
|
||||||
{
|
{
|
||||||
RETURNFUNC(-RIG_EIO);
|
RETURNFUNC(-RIG_EIO);
|
||||||
|
@ -5096,6 +5094,8 @@ int HAMLIB_API rig_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option,
|
||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*ant_tx = *ant_rx = RIG_ANT_UNKNOWN;
|
||||||
|
|
||||||
caps = rig->caps;
|
caps = rig->caps;
|
||||||
|
|
||||||
if (caps->get_ant == NULL)
|
if (caps->get_ant == NULL)
|
||||||
|
|
Ładowanie…
Reference in New Issue