mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 11:23:34 +08:00
Add basic directory structure for the Shenzhou STM32107 board (not much there yet)
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5108 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -371,7 +371,7 @@ static int recvfrom_timeout(struct recvfrom_s *pstate)
|
||||
* 1) This delay function has been enabled with CONFIG_NET_TCP_RECVDELAY > 0
|
||||
* 2) Some data has already been received from the socket. Since this can
|
||||
* only be true for a TCP/IP socket, this logic applies only to TCP/IP
|
||||
* sockets, and either
|
||||
* sockets. And either
|
||||
* 3) There is no configured receive timeout, or
|
||||
* 4) The configured receive timeout is greater than than the delay
|
||||
*/
|
||||
@@ -598,7 +598,9 @@ static uint16_t recvfrom_tcpinterrupt(struct uip_driver_s *dev, void *conn,
|
||||
|
||||
/* Report an error only if no data has been received */
|
||||
|
||||
#if CONFIG_NET_TCP_RECVDELAY > 0
|
||||
if (pstate->rf_recvlen == 0)
|
||||
#endif
|
||||
{
|
||||
/* Report the timeout error */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user