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 <n0nb@n0nb.us>
Hamlib-3.0
Bill Somerville 2013-09-30 22:22:45 +01:00 zatwierdzone przez Nate Bargmann
rodzic 87688bc254
commit 419dc8540f
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -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);