Use EAGAIN error to retry when serial port is unavailable

https://github.com/Hamlib/Hamlib/issues/818
pull/822/head
Mike Black W9MDB 2021-10-10 08:33:31 -05:00
rodzic 4b77fc1eb3
commit d90d3eb0d0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -767,7 +767,7 @@ int HAMLIB_API read_string(hamlib_port_t *p,
do
{
rd_count = port_read(p, &rxbuffer[total_count], 1);
if (errno == EBUSY)
if (errno == EAGAIN)
{
hl_usleep(5*1000);
rig_debug(RIG_DEBUG_WARN, "%s: port_read is busy?\n", __func__);