Move the async detection for Icom to after the echo detection

https://github.com/Hamlib/Hamlib/issues/1587
pull/1592/head
Mike Black W9MDB 2024-08-01 17:30:03 -05:00
rodzic 48862ece54
commit 9d8cc7d260
1 zmienionych plików z 11 dodań i 10 usunięć

Wyświetl plik

@ -206,16 +206,6 @@ again1:
RETURNFUNC(-RIG_EPROTO);
}
// https://github.com/Hamlib/Hamlib/issues/1575
// these types of async can interrupt the cmd we sent
// if our host number changes must not be for us
if (sendbuf[3] != buf[2])
{
hl_usleep(100);
rig_flush(rp);
goto collision_retry;
}
if (icom_is_async_frame(rig, frm_len, buf))
{
icom_process_async_frame(rig, frm_len, buf);
@ -332,6 +322,17 @@ again2:
priv->serial_USB_echo_off = 0;
goto again2;
}
// https://github.com/Hamlib/Hamlib/issues/1575
// these types of async can interrupt the cmd we sent
// if our host number changes must not be for us
if (sendbuf[3] != buf[2])
{
rig_debug(RIG_DEBUG_VERBOSE, "%s: unknown async? read again\n", __func__);
hl_usleep(100);
rig_flush(rp);
goto collision_retry;
}
if (icom_is_async_frame(rig, frm_len, buf))
{