Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d04f4b6

Browse files
Add validation handling for SH and RF in newcat.c
Fix FTDX10 SH command formatting Hamlib/Hamlib#973
1 parent 1874f3a commit d04f4b6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

‎rigs/yaesu/newcat.c‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8515,7 +8515,7 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
85158515
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "SH%c%d%02d;", main_sub_vfo, on,
85168516
w);
85178517
}
8518-
else if (is_ft2000 || is_ftdx10||is_ftdx3000)
8518+
else if (is_ft2000 || is_ftdx3000)
85198519
{
85208520
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "SH0%02d;", w);
85218521
}
@@ -10350,6 +10350,16 @@ int newcat_set_cmd_validate(RIG *rig)
1035010350
{
1035110351
strcpy(valcmd, ""); // nothing to validate
1035210352
}
10353+
else if (strncmp(priv->cmd_str, "SH", 2) == 0)
10354+
{
10355+
// could validate with SH but different formats need to be handled
10356+
strcpy(valcmd, ""); // nothing to validate
10357+
}
10358+
else if (strncmp(priv->cmd_str, "RF", 2) == 0)
10359+
{
10360+
// could validate with RF but different formats need to be handled
10361+
strcpy(valcmd, ""); // nothing to validate
10362+
}
1035310363
else
1035410364
{
1035510365
rig_debug(RIG_DEBUG_TRACE, "%s: %s not implemented\n", __func__, priv->cmd_str);

‎rigs/yaesu/newcat.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
typedef char ncboolean;
5151

5252
/* shared function version */
53-
#define NEWCAT_VER "20220220"
53+
#define NEWCAT_VER "20220221"
5454

5555
/* Hopefully large enough for future use, 128 chars plus '0円' */
5656
#define NEWCAT_DATA_LEN 129

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /