Start excluding some Icom rigs from checking x25 command

Rigs like IC-751 don't even reject it and have to time out
pull/1001/head
Mike Black W9MDB 2022-03-26 09:18:52 -05:00
rodzic 56fc193323
commit 3aa8f31dcd
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -678,6 +678,16 @@ int icom_init(RIG *rig)
priv->filter = RIG_PASSBAND_NOCHANGE;
priv->x25cmdfails = 0;
priv->x1cx03cmdfails = 0;
// we can add rigs here that will never use the 0x25 cmd
// some like the 751 don't even reject the command and have to time out
if (rig->caps->rig_model == RIG_MODEL_IC706
|| rig->caps->rig_model == RIG_MODEL_IC706MKII
|| rig->caps->rig_model == RIG_MODEL_IC706MKIIG
|| rig->caps->rig_model == RIG_MODEL_IC751
)
{
priv->x25cmdfails = 1;
}
rig_debug(RIG_DEBUG_TRACE, "%s: done\n", __func__);

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20220324"
#define BACKEND_VER "20220326"
#define ICOM_IS_SECONDARY_VFO(vfo) ((vfo) & (RIG_VFO_B | RIG_VFO_SUB | RIG_VFO_SUB_B | RIG_VFO_MAIN_B))
#define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)