From 359f7549dca6396732a4afa56a2b81c92c5b3e5a Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 26 Sep 2020 22:34:02 -0500 Subject: [PATCH] Add comment to is_read_cmd newcat.c and remove redundant check https://github.com/Hamlib/Hamlib/issues/385 --- rigs/yaesu/newcat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index ce813933c..e275c99aa 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -6484,6 +6484,7 @@ int newcat_get_cmd(RIG *rig) // we drop through and do the real IF command } + // any command that is read only should not expire cache is_read_cmd = strcmp(priv->cmd_str,"AG0;")==0 || strcmp(priv->cmd_str,"AG1;")==0 @@ -6533,8 +6534,7 @@ int newcat_get_cmd(RIG *rig) || strcmp(priv->cmd_str,"SQ0;")==0 || strcmp(priv->cmd_str,"SQ1;")==0 || strcmp(priv->cmd_str,"VT0;")==0 - || strcmp(priv->cmd_str,"VT1;")==0 - || strcmp(priv->cmd_str,"SQ1;")==0; + || strcmp(priv->cmd_str,"VT1;")==0; if (priv->cmd_str[2] != ';' && !is_read_cmd) // then we must be setting something so we'll invalidate the cache