Have icom rigs show debug when civ addr has been changed and timeout occurs

https://github.com/Hamlib/Hamlib/issues/1229
pull/1242/head
Mike Black W9MDB 2023-02-04 14:22:57 -06:00
rodzic c055817c27
commit 1efff461e3
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -289,6 +289,13 @@ read_another_frame:
if (frm_len < 0)
{
set_transaction_inactive(rig);
if (priv_caps->re_civ_addr != priv->re_civ_addr)
{
rig_debug(RIG_DEBUG_ERR, "%s: Icom timeout civ expected=%02x, used=%02x\n",
__func__, priv_caps->re_civ_addr, priv->re_civ_addr);
}
/* RIG_TIMEOUT: timeout getting response, return timeout */
/* other error: return it */
RETURNFUNC(frm_len);