Skip to content

Commit

Permalink
Allo FT-857 to return cached vfo when set_vfo is called and EEPROM re…
Browse files Browse the repository at this point in the history
…ad error occurs

#1232
  • Loading branch information
mdblack98 committed Feb 6, 2023
1 parent 1f25aab commit 9ee5afb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Version 4.6
* Fix FTDX3000 rig split

Version 4.5.5
* Allow FT-857 to use cached vfo on get_vfo when error occurs reading EEPROM
* Fix FTDX10 FT710 set_level AFy
* Fix FT-450D detection
* Fix VFO A/B swapping for gpredict -- hopefully better behavior for VFO swapping rigs
Expand Down
6 changes: 4 additions & 2 deletions rigs/yaesu/ft857.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const struct rig_caps ft857_caps =
RIG_MODEL(RIG_MODEL_FT857),
.model_name = "FT-857",
.mfg_name = "Yaesu",
.version = "20220712.0",
.version = "20230206.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
Expand Down Expand Up @@ -613,7 +613,9 @@ int ft857_get_vfo(RIG *rig, vfo_t *vfo)

if (ft857_read_eeprom(rig, 0x0068, &c) < 0) /* get vfo status */
{
return -RIG_EPROTO;
// Some 857's cannnot read so we'll just return the cached value
*vfo = rig->state.cache.vfo;
return RIG_OK;
}

if ((c & 0x1) == 0) { *vfo = RIG_VFO_A; }
Expand Down

0 comments on commit 9ee5afb

Please sign in to comment.