Move ant_rx ant_tx set to after NULL check in rig.c

pull/692/head
Mike Black W9MDB 2021-05-05 15:13:56 -05:00
rodzic a56e976787
commit d0038fb643
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)