Undo last commit to serial.c

pull/412/head
Michael Black W9MDB 2020-09-30 12:57:31 -05:00
rodzic 73d947213f
commit 49d24815b2
1 zmienionych plików z 1 dodań i 14 usunięć

Wyświetl plik

@ -677,22 +677,9 @@ int ser_open(hamlib_port_t *p)
/*
* pathname is not uh_rig or uh_ptt: simply open()
*/
int i;
for(i=0, ret=-1;i<5 && ret < 0;++i)
{
ret = OPEN(p->pathname, O_RDWR | O_NOCTTY | O_NDELAY);
if (ret < 0) {
rig_debug(RIG_DEBUG_ERR, "%s: OPEN attempt#%d failed %d=%s\n", __func__, i+1, ret, strerror(errno));
hl_usleep(100*1000); // 100ms between attempts
}
}
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;