From d2924c7ae70c56301def2dda7208bd4d11533651 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 9 May 2023 14:13:17 -0500 Subject: [PATCH] Add a flush in newcat.c get_powerstat --- rigs/yaesu/newcat.c | 1 + rigs/yaesu/newcat.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 9ddf6d0f8..d102ac35b 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -3635,6 +3635,7 @@ int newcat_get_powerstat(RIG *rig, powerstat_t *status) // then sleep from 1 to 2 seconds so we'll do 1.5 secs write_block(&state->rigport, (unsigned char *) "PS;", 3); hl_usleep(1200000); + rig_flush(&rig->state.rigport); /* discard any unsolicited data */ SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s%c", command, cat_term); diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index 441914ca0..1005cdd5f 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20230328" +#define NEWCAT_VER "20230509" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129