kopia lustrzana https://github.com/Hamlib/Hamlib
Change Icom 0x25 logic to only allow one detection
https://github.com/Hamlib/Hamlib/issues/1277pull/1289/head
rodzic
44807be556
commit
6fadbfb112
|
@ -682,7 +682,7 @@ int icom_init(RIG *rig)
|
|||
priv->rx_vfo = RIG_VFO_NONE;
|
||||
rig->state.current_vfo = RIG_VFO_NONE;
|
||||
priv->filter = RIG_PASSBAND_NOCHANGE;
|
||||
priv->x25cmdfails = 0;
|
||||
priv->x25cmdfails = -1;
|
||||
priv->x1cx03cmdfails = 0;
|
||||
|
||||
// we can add rigs here that will never use the 0x25 cmd
|
||||
|
@ -1652,7 +1652,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
|||
|
||||
if (retval != RIG_OK)
|
||||
{
|
||||
priv->x25cmdfails = 1;
|
||||
if (priv->x25cmdfails < 0) priv->x25cmdfails = 1;
|
||||
rig_debug(RIG_DEBUG_WARN,
|
||||
"%s: rig probe shows 0x25 CI-V cmd not available\n", __func__);
|
||||
}
|
||||
|
@ -5758,7 +5758,7 @@ int icom_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
|
|||
RETURNFUNC2(retval);
|
||||
}
|
||||
|
||||
priv->x25cmdfails = 1;
|
||||
if (priv->x25cmdfails < 0) priv->x25cmdfails = 1;
|
||||
}
|
||||
}
|
||||
else // we're in satmode so we try another command
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20230122"
|
||||
#define BACKEND_VER "20230425"
|
||||
|
||||
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
|
||||
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)
|
||||
|
|
Ładowanie…
Reference in New Issue