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/525
This commit is contained in:
Michael Black W9MDB 2021-02-03 11:45:57 -06:00
parent 96e2cc7829
commit 76f3099aef
2 changed files with 4 additions and 3 deletions

View File

@ -320,8 +320,9 @@ int icom_transaction(RIG *rig, int cmd, int subcmd,
{
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);
@ -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));
}
return retval;
RETURNFUNC(retval);
}
/* used in read_icom_frame as end of block */

View File

@ -704,7 +704,7 @@ int icom_get_usb_echo_off(RIG *rig)
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
// reduce the retry here so it's quicker
rs->rigport.retry = 1;
rs->rigport.retry = 0;
// Check for echo on first
priv->serial_USB_echo_off = 0;