kopia lustrzana https://github.com/Hamlib/Hamlib
Fix antenna count in icom.c
rodzic
fd965de5c9
commit
12e93dd603
|
@ -5302,7 +5302,7 @@ static int icom_get_ant_count(RIG *rig)
|
||||||
rig->caps->priv;
|
rig->caps->priv;
|
||||||
// we only need to do this once if we haven't done it yet
|
// we only need to do this once if we haven't done it yet
|
||||||
if (priv_caps->ant_count == 0) {
|
if (priv_caps->ant_count == 0) {
|
||||||
ant_t tmp_ant;
|
ant_t tmp_ant=0;
|
||||||
value_t tmp_option;
|
value_t tmp_option;
|
||||||
int retval;
|
int retval;
|
||||||
do {
|
do {
|
||||||
|
@ -5310,6 +5310,7 @@ static int icom_get_ant_count(RIG *rig)
|
||||||
if (retval == RIG_OK) {
|
if (retval == RIG_OK) {
|
||||||
++priv_caps->ant_count;
|
++priv_caps->ant_count;
|
||||||
rig_debug(RIG_DEBUG_TRACE,"%s: found ant#%d\n", __func__, 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);
|
} while(retval == RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue