From f2b8096529a0a659a49337d0188fcc19883282b5 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Fri, 15 Jan 2021 22:29:46 -0600 Subject: [PATCH] Fix 2nd BS call in newcat.c https://github.com/Hamlib/Hamlib/issues/510 --- rigs/yaesu/newcat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index ded0e20e4..e236403f1 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -854,6 +854,9 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) if (err != RIG_OK) { return err; } + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "BS%02d%c", + newcat_band_index(freq), cat_term); + if (RIG_OK != (err = newcat_set_cmd(rig))) { rig_debug(RIG_DEBUG_ERR, "%s: Unexpected error with BS command#2=%s\n",