Add rig_flush to newcat_set_cmd_validate

pull/518/head
Michael Black W9MDB 2021-01-14 16:38:31 -06:00
rodzic 30c2d34d87
commit 6779d04581
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -9424,6 +9424,7 @@ int newcat_set_cmd_validate(RIG *rig)
}
while (rc != RIG_OK && retry++ < retries)
{
rig_flush(&state->rigport); /* discard any unsolicited data */
rc = write_block(&state->rigport, priv->cmd_str, strlen(priv->cmd_str));
if (rc != RIG_OK) return -RIG_EIO;
rc = write_block(&state->rigport, valcmd, strlen(valcmd));