From 67181bf846b42586f3699b051fbab3f3a966fcd4 Mon Sep 17 00:00:00 2001 From: Jonathan Bastien-Filiatrault Date: Tue, 9 Jul 2019 20:45:58 -0400 Subject: [PATCH] Correct FT; command that does not exist on the FT-891. This command exists on the FT-991, but the FT-891 returns "?". Replacing this command with the ST; command that exists as per the CAT reference, everything falls into place. This patch enables me to use WSJT-X with rigctld. WSJT-X was outputing a "timeout while getting VFO frequency" error. --- yaesu/ft891.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yaesu/ft891.c b/yaesu/ft891.c index 0e2caed26..21c17b717 100644 --- a/yaesu/ft891.c +++ b/yaesu/ft891.c @@ -279,16 +279,16 @@ int ft891_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo) switch(split) { case RIG_SPLIT_ON: - ci = '3'; + ci = '1'; break; case RIG_SPLIT_OFF: - ci = '2'; + ci = '0'; break; default: return -RIG_EINVAL; } - snprintf(priv->cmd_str, sizeof(priv->cmd_str), "FT%c;", ci); + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "ST%c;", ci); if ( RIG_OK != (err = write_block(&state->rigport, priv->cmd_str, strlen(priv->cmd_str)))) { rig_debug(RIG_DEBUG_ERR, "%s: write_block err = %d\n", __func__, err); return err; @@ -327,12 +327,12 @@ int ft891_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo) priv = (struct newcat_priv_data *)rig->state.priv; - snprintf(priv->cmd_str, sizeof(priv->cmd_str), "FT;"); + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "ST;"); if (RIG_OK != (err = newcat_get_cmd (rig))) return err; // Get split mode status - *split = priv->ret_data[2]=='1'; // 1=VFOB TX so is in split mode + *split = priv->ret_data[2]!='0'; // 1=split, 2=split + 5khz rig_debug(RIG_DEBUG_TRACE, "%s: get split = 0x%02x\n", __func__, *split); *tx_vfo = RIG_VFO_A;