kopia lustrzana https://github.com/Hamlib/Hamlib
Move ant_rx ant_tx set to after NULL check in rig.c
https://github.com/Hamlib/Hamlib/pull/691#issuecomment-832918894pull/692/head
rodzic
a56e976787
commit
805cd8e60b
|
@ -5081,8 +5081,6 @@ int HAMLIB_API rig_get_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t *option,
|
|||
|
||||
ENTERFUNC;
|
||||
|
||||
*ant_tx = *ant_rx = RIG_ANT_UNKNOWN;
|
||||
|
||||
if (CHECK_RIG_ARG(rig))
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
*ant_tx = *ant_rx = RIG_ANT_UNKNOWN;
|
||||
|
||||
caps = rig->caps;
|
||||
|
||||
if (caps->get_ant == NULL)
|
||||
|
|
Ładowanie…
Reference in New Issue