kopia lustrzana https://github.com/Hamlib/Hamlib
Try to fix ft817 get_vfo to return the valid status bye
https://github.com/Hamlib/Hamlib/issues/1278pull/1289/head
rodzic
e82f127965
commit
215aa6b92c
|
@ -292,7 +292,7 @@ const struct rig_caps ft817_caps =
|
||||||
RIG_MODEL(RIG_MODEL_FT817),
|
RIG_MODEL(RIG_MODEL_FT817),
|
||||||
.model_name = "FT-817",
|
.model_name = "FT-817",
|
||||||
.mfg_name = "Yaesu",
|
.mfg_name = "Yaesu",
|
||||||
.version = "20230424.0",
|
.version = "20230428.0",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rig_type = RIG_TYPE_TRANSCEIVER,
|
.rig_type = RIG_TYPE_TRANSCEIVER,
|
||||||
|
@ -698,6 +698,8 @@ static int ft817_read_eeprom(RIG *rig, unsigned short addr, unsigned char *out)
|
||||||
|
|
||||||
*out = data[addr % 2];
|
*out = data[addr % 2];
|
||||||
|
|
||||||
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: data[0]=%02x, data[1]=%02x, out=%02x\n", __func__, data[0], data[1], *out);
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1396,7 +1398,7 @@ static int ft817_get_vfo(RIG *rig, vfo_t *vfo)
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: called \n", __func__);
|
||||||
|
|
||||||
if (ft817_read_eeprom(rig, 0x55, &c) < 0) /* get vfo status */
|
if (ft817_read_eeprom(rig, 0x54, &c) < 0) /* get vfo status */
|
||||||
{
|
{
|
||||||
return -RIG_EPROTO;
|
return -RIG_EPROTO;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue