Fix get_mode_with_data for IC7800 as it can set but not read mode with 0x26 command

https://github.com/Hamlib/Hamlib/issues/725
pull/739/head
Mike Black W9MDB 2021-06-14 07:52:29 -05:00
rodzic 42a9d4fbd6
commit 763e18fa42
3 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -154,9 +154,9 @@ const struct rig_caps ic7800_caps =
RIG_MODEL(RIG_MODEL_IC7800),
.model_name = "IC-7800",
.mfg_name = "Icom",
.version = BACKEND_VER ".1",
.version = BACKEND_VER ".2",
.copyright = "LGPL",
.status = RIG_STATUS_UNTESTED,
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
.ptt_type = RIG_PTT_RIG,
.dcd_type = RIG_DCD_RIG,

Wyświetl plik

@ -2020,7 +2020,9 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
*width = 0;
if (rig->caps->targetable_vfo & RIG_TARGETABLE_MODE)
// IC7800 can set but not read with 0x26
if ((rig->caps->targetable_vfo & RIG_TARGETABLE_MODE)
&& rig->caps->rig_model != RIG_MODEL_IC7800)
{
int vfosel = 0x00;

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20210525"
#define BACKEND_VER "20210614"
#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)