From 419dc8540ff5f4c73a5705b6211a9e4d7cc0cf16 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Mon, 30 Sep 2013 22:22:45 +0100 Subject: [PATCH] Fix Yaesu newcat backend set_tx_vfo issue. The newcat Yaesu backend was using a toggle command to set the TX VFO where an explicit set command is avaiable. This fix corrects the function for the FT-2000(D) and the FT-DX5000. There is still an issue with the FT-450D which as far as I can see has no definitive way of setting which VFO will be used for TX. Signed-off-by: Nate Bargmann --- yaesu/newcat.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/yaesu/newcat.c b/yaesu/newcat.c index f31d85426..6b3480717 100644 --- a/yaesu/newcat.c +++ b/yaesu/newcat.c @@ -3758,8 +3758,13 @@ int newcat_set_tx_vfo(RIG * rig, vfo_t tx_vfo) { return -RIG_EINVAL; } - if (newcat_is_rig(rig, RIG_MODEL_FT950)) - p1 = p1 + 2; /* FT950 non-Toggle */ + /* TODO: G4WJS - FT-450 only has toggle command so not sure how to + definitively set the TX VFO (VS; doesn't seem to help + either) */ + if (newcat_is_rig(rig, RIG_MODEL_FT950) || + newcat_is_rig(rig, RIG_MODEL_FT2000) || + newcat_is_rig(rig, RIG_MODEL_FTDX5000)) + p1 = p1 + 2; /* use non-Toggle commands */ snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s%c%c", "FT", p1, cat_term);