Add some debug to show ser_open error

https://github.com/Hamlib/Hamlib/issues/383
pull/412/head
Michael Black W9MDB 2020-09-28 16:13:08 -04:00
rodzic c9cfd40e91
commit cfff76dae6
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -680,6 +680,10 @@ int ser_open(hamlib_port_t *p)
ret = OPEN(p->pathname, O_RDWR | O_NOCTTY | O_NDELAY);
}
}
if (ret == -1)
{
rig_debug(RIG_DEBUG_ERR, "%s: OPEN failed %d=%s\n", __func__, ret, strerror(errno));
}
p->fd = ret;
return ret;