Fixed bug #398.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5563 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
fdc358a520
commit
351b7594ff
|
@ -64,6 +64,9 @@ static u_long nb = 1;
|
|||
static void init(SerialDriver *sdp, uint16_t port) {
|
||||
struct sockaddr_in sad;
|
||||
struct protoent *prtp;
|
||||
int sockval = 1;
|
||||
socklen_t socklen = sizeof(sockval);
|
||||
|
||||
|
||||
if ((prtp = getprotobyname("tcp")) == NULL) {
|
||||
printf("%s: Error mapping protocol name to protocol number\n", sdp->com_name);
|
||||
|
@ -76,6 +79,9 @@ static void init(SerialDriver *sdp, uint16_t port) {
|
|||
goto abort;
|
||||
}
|
||||
|
||||
|
||||
setsockopt(sdp->com_listen, SOL_SOCKET, SO_REUSEADDR, &sockval, socklen);
|
||||
|
||||
if (ioctl(sdp->com_listen, FIONBIO, &nb) != 0) {
|
||||
printf("%s: Unable to setup non blocking mode on socket\n", sdp->com_name);
|
||||
goto abort;
|
||||
|
|
|
@ -89,6 +89,7 @@
|
|||
*****************************************************************************
|
||||
|
||||
*** 2.5.2 ***
|
||||
- FIX: Fixed patch to allow simulator to be restarted quicker (bug #398).
|
||||
- FIX: Fixed blkDisconnect macro typo (bug #397).
|
||||
- FIX: Fixed STM32 SPI (V2) driver hangs (bug 3608241).
|
||||
- FIX: Fixed fixed I2C malfunction after fixing bug 3607518 (bug 3607549)
|
||||
|
|
Loading…
Reference in New Issue