Put rig_flush back in frame.c for the IC-7100 -- hopefully fixed async packets on the CI-V port coming from amplifiers

The 7100 cannot unlink the CI-V port and these async packets are not being handled well.
https://github.com/Hamlib/Hamlib/issues/1587
pull/1592/head
Mike Black W9MDB 2024-08-04 11:51:18 -05:00
rodzic fe43a6425e
commit df48595add
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -156,7 +156,11 @@ int icom_one_transaction(RIG *rig, unsigned char cmd, int subcmd,
set_transaction_active(rig);
collision_retry:
//rig_flush(rp);
// The IC7100 cannot separate the CI-V port from the USB CI-V
// We see async packets coming in so we'll try and do the flush
// This also means the IC7100 will not support async packets anymore
if (rig->caps->rig_model == RIG_MODEL_IC7100)
rig_flush(rp);
frm_len = make_cmd_frame(sendbuf, priv->re_civ_addr, ctrl_id, cmd,
subcmd, payload, payload_len);

Wyświetl plik

@ -35,7 +35,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20240801"
#define BACKEND_VER "20240804"
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)