From 42de040bcb9e7cd2842be97780c5ed48746a5f27 Mon Sep 17 00:00:00 2001 From: Tobias Wellnitz Date: Thu, 13 Apr 2017 17:13:15 +0200 Subject: [PATCH] fixed reading the rig's return value in newcat_get_tx_vfo --- yaesu/newcat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yaesu/newcat.c b/yaesu/newcat.c index 91481271d..e4b0479c1 100644 --- a/yaesu/newcat.c +++ b/yaesu/newcat.c @@ -3526,7 +3526,6 @@ int newcat_set_tx_vfo(RIG * rig, vfo_t tx_vfo) { int newcat_get_tx_vfo(RIG * rig, vfo_t * tx_vfo) { struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv; int err; - char c; vfo_t vfo_mode; char const * command = "FT"; @@ -3543,8 +3542,7 @@ int newcat_get_tx_vfo(RIG * rig, vfo_t * tx_vfo) { return err; } - c = priv->ret_data[strlen (priv->cmd_str)]; - switch (c) { + switch (priv->ret_data[2]) { case '0': *tx_vfo = RIG_VFO_A; break;