From d0b3484c13a18ae8485833debe95bc84b5b1a0e2 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 27 Apr 2021 06:47:58 -0500 Subject: [PATCH] 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 --- src/rig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rig.c b/src/rig.c index 924ab4a3f..42eb59871 100644 --- a/src/rig.c +++ b/src/rig.c @@ -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)