kopia lustrzana https://github.com/Hamlib/Hamlib
Use EAGAIN error to retry when serial port is unavailable
https://github.com/Hamlib/Hamlib/issues/818pull/822/head
rodzic
4b77fc1eb3
commit
d90d3eb0d0
|
@ -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__);
|
||||
|
|
Ładowanie…
Reference in New Issue