Add a flush in newcat.c get_powerstat

pull/1289/head
Mike Black W9MDB 2023-05-09 14:13:17 -05:00
rodzic 58e6ee3553
commit d2924c7ae7
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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