Interactive rigctld clients will now flush the line when a VFO error is encountered

https://github.com/Hamlib/Hamlib/issues/1041
pull/1091/head
Mike Black W9MDB 2022-07-08 16:21:34 -05:00
rodzic 9f3314085a
commit 0ec9622433
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -2237,6 +2237,12 @@ declare_proto_rig(set_vfo)
}
vfo = rig_parse_vfo(arg1);
if (vfo == RIG_VFO_NONE)
{
int c;
while((c = fgetc(fin)) != '\n' && c != '\r' && c > 0);
return -RIG_EINVAL;
}
retval = rig_set_vfo(rig, vfo);
#if 0 // see if we can make this dynamic