Fix rig_cache to fix up RIG_VFO_OTHER when requested.

https://github.com/Hamlib/Hamlib/issues/1086
This commit is contained in:
Mike Black W9MDB 2022-07-16 10:53:03 -05:00
parent d9c7fda5c9
commit cc7c5961a0

View File

@ -46,6 +46,7 @@ int rig_set_cache_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
if (vfo == RIG_VFO_NONE || vfo == RIG_VFO_CURR) { vfo = RIG_VFO_A; }
if (vfo == RIG_VFO_SUB && rig->state.cache.satmode) { vfo = RIG_VFO_SUB_A; };
if (vfo == RIG_VFO_OTHER) vfo = vfo_fixup(rig, vfo, rig->state.cache.split);
switch (vfo)
{