From a67f885c853c9824cd021123c70375fca4911d30 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 14 Nov 2021 12:49:52 -0600 Subject: [PATCH] Implement SV command in newcat.c https://github.com/Hamlib/Hamlib/issues/858# --- rigs/yaesu/newcat.c | 4 ++++ rigs/yaesu/newcat.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 245e0e40f..547e36084 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -9830,6 +9830,10 @@ int newcat_set_cmd_validate(RIG *rig) { strcpy(valcmd, "VS;"); } + else if ((strncmp(priv->cmd_str, "SV", 2) == 0) && (strlen(priv->cmd_str) > 3)) + { + strcpy(valcmd, "SV;"); + } else { rig_debug(RIG_DEBUG_TRACE, "%s: %s not implemented\n", __func__, priv->cmd_str); diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index 40a84dda5..e11ef2a5f 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20211105" +#define NEWCAT_VER "20211114" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129