From d4e434fa2057fa966c913775de4f1fff4591bcc4 Mon Sep 17 00:00:00 2001 From: Mikael Nousiainen Date: Sun, 25 Oct 2020 22:24:40 +0200 Subject: [PATCH] Invalid roofing filter choice leads to question mark response --- rigs/yaesu/newcat.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 94576a1b1..0cc0ce72e 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -6298,7 +6298,11 @@ static int set_roofing_filter(RIG *rig, vfo_t vfo, int index) snprintf(priv->cmd_str, sizeof(priv->cmd_str), "RF%c%c%c", main_sub_vfo, roofing_filter_choice, cat_term); - if (RIG_OK != (err = newcat_set_cmd(rig))) + priv->question_mark_response_means_rejected = 1; + err = newcat_set_cmd(rig); + priv->question_mark_response_means_rejected = 0; + + if (RIG_OK != err) { return err; }