kopia lustrzana https://github.com/Hamlib/Hamlib
Remove 500ms from icom/frame.c -- should not be needed
Reduce icom echo check to just 2 tries Improves power up sequencing by about 7 seconds https://github.com/Hamlib/Hamlib/issues/525pull/527/head
rodzic
96e2cc7829
commit
76f3099aef
|
@ -320,8 +320,9 @@ int icom_transaction(RIG *rig, int cmd, int subcmd,
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
rig_debug(RIG_DEBUG_WARN, "%s: timeout retry=%d\n", __func__, retry);
|
||||||
|
|
||||||
hl_usleep(500 * 1000); // pause a half second
|
//hl_usleep(500 * 1000); // pause a half second -- don't think we need this
|
||||||
}
|
}
|
||||||
while (retry-- > 0);
|
while (retry-- > 0);
|
||||||
|
|
||||||
|
@ -330,7 +331,7 @@ int icom_transaction(RIG *rig, int cmd, int subcmd,
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: failed: %s\n", __func__, rigerror(retval));
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: failed: %s\n", __func__, rigerror(retval));
|
||||||
}
|
}
|
||||||
|
|
||||||
return retval;
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* used in read_icom_frame as end of block */
|
/* used in read_icom_frame as end of block */
|
||||||
|
|
|
@ -704,7 +704,7 @@ int icom_get_usb_echo_off(RIG *rig)
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
// reduce the retry here so it's quicker
|
// reduce the retry here so it's quicker
|
||||||
rs->rigport.retry = 1;
|
rs->rigport.retry = 0;
|
||||||
// Check for echo on first
|
// Check for echo on first
|
||||||
priv->serial_USB_echo_off = 0;
|
priv->serial_USB_echo_off = 0;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue