Fix antenna count in icom.c

pull/193/head
Michael Black 2020-01-31 12:25:50 -06:00
rodzic fd965de5c9
commit 12e93dd603
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -5302,7 +5302,7 @@ static int icom_get_ant_count(RIG *rig)
rig->caps->priv;
// we only need to do this once if we haven't done it yet
if (priv_caps->ant_count == 0) {
ant_t tmp_ant;
ant_t tmp_ant=0;
value_t tmp_option;
int retval;
do {
@ -5310,6 +5310,7 @@ static int icom_get_ant_count(RIG *rig)
if (retval == RIG_OK) {
++priv_caps->ant_count;
rig_debug(RIG_DEBUG_TRACE,"%s: found ant#%d\n", __func__, priv_caps->ant_count);
++tmp_ant;
}
} while(retval == RIG_OK);
}