From 3ce5718a655b2cc3c7c21d6ae4524afe0a95d7fb Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 27 Nov 2022 22:19:20 -0600 Subject: [PATCH] For FT736 fix set_vfo to also work for VFOB and set split when VFOB is requested https://github.com/Hamlib/Hamlib/issues/1160 --- rigs/yaesu/ft736.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/ft736.c b/rigs/yaesu/ft736.c index cd56e95eb..c46ca2380 100644 --- a/rigs/yaesu/ft736.c +++ b/rigs/yaesu/ft736.c @@ -98,7 +98,7 @@ const struct rig_caps ft736_caps = RIG_MODEL(RIG_MODEL_FT736R), .model_name = "FT-736R", .mfg_name = "Yaesu", - .version = "20210221.0", + .version = "20211271.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, @@ -269,6 +269,9 @@ int ft736_set_freq(RIG *rig, vfo_t vfo, freq_t freq) unsigned char cmd[YAESU_CMD_LENGTH] = { 0x00, 0x00, 0x00, 0x00, 0x01}; struct ft736_priv_data *priv = (struct ft736_priv_data *)rig->state.priv; + // we will assume requesting to set VFOB is split mode + if (vfo == RIG_VFO_B) { return rig_set_split_freq(rig, vfo, freq); } + if (priv->split == RIG_SPLIT_ON) { cmd[4] = 0x1e;