kopia lustrzana https://github.com/Hamlib/Hamlib
Improve serial port timeout when permission proble or does not exist
https://github.com/Hamlib/Hamlib/issues/1216pull/1242/head
rodzic
e4471b9ece
commit
9c48ec785c
|
@ -231,7 +231,7 @@ int HAMLIB_API serial_open(hamlib_port_t *rp)
|
|||
fd = OPEN(rp->pathname, O_RDWR | O_NOCTTY | O_NDELAY);
|
||||
}
|
||||
}
|
||||
while (++i <= 4 && fd == -1);
|
||||
while (++i <= 4 && fd == -1 && errno != ENOENT && errno != EPERM);
|
||||
|
||||
if (fd == -1)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue