kopia lustrzana https://github.com/Hamlib/Hamlib
Add a flush in newcat.c get_powerstat
rodzic
58e6ee3553
commit
d2924c7ae7
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue