Change rig_set_split_mode to return RIG_OK when set_vfo and vfo_op are not available

For the FT-991 example there's no need to set mode on VFOB as there is only one mode for both VFOs
So if rig has neither of these we will assume VFOB mode does not need to be set
https://github.com/Hamlib/Hamlib/issues/684
pull/691/head
Mike Black W9MDB 2021-04-27 06:47:58 -05:00
rodzic a281161fcf
commit 19fb0e421d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3879,7 +3879,8 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
}
else
{
RETURNFUNC(-RIG_ENAVAIL);
rig_debug(RIG_DEBUG_WARN, "%s: rig does not have set_vfo or vfo_op. Assuming mode already set\n", __func__);
RETURNFUNC(RIG_OK);
}
if (retcode != RIG_OK)