kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
7eb50d0d97
commit
2b778fed63
|
@ -1541,7 +1541,6 @@ static int ft1000mp_get_update_data(RIG *rig, unsigned char ci,
|
||||||
struct rig_state *rig_s;
|
struct rig_state *rig_s;
|
||||||
struct ft1000mp_priv_data *p;
|
struct ft1000mp_priv_data *p;
|
||||||
int n; /* for read_ */
|
int n; /* for read_ */
|
||||||
int retry = rig->state.rigport.retry;
|
|
||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
|
@ -1550,8 +1549,6 @@ static int ft1000mp_get_update_data(RIG *rig, unsigned char ci,
|
||||||
|
|
||||||
// timeout retries are done in read_block now
|
// timeout retries are done in read_block now
|
||||||
// based on rig backed retry value
|
// based on rig backed retry value
|
||||||
// do
|
|
||||||
{
|
|
||||||
/* send UPDATE command to fetch data*/
|
/* send UPDATE command to fetch data*/
|
||||||
ft1000mp_send_priv_cmd(rig, ci);
|
ft1000mp_send_priv_cmd(rig, ci);
|
||||||
|
|
||||||
|
@ -1559,14 +1556,10 @@ static int ft1000mp_get_update_data(RIG *rig, unsigned char ci,
|
||||||
|
|
||||||
if (n == -RIG_ETIMEOUT)
|
if (n == -RIG_ETIMEOUT)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: Timeout retry count = %d\n", __func__, retry);
|
rig_debug(RIG_DEBUG_TRACE, "%s: Timeout\n", __func__);
|
||||||
//rig_debug(RIG_DEBUG_TRACE, "%s: Timeout\n", __func__, retry);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// while (retry-- && n == -RIG_ETIMEOUT);
|
|
||||||
|
|
||||||
if (n <= 0) RETURNFUNC(-RIG_ETIMEOUT);
|
RETURNFUNC(n);
|
||||||
RETURNFUNC(RIG_OK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue