mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-29 21:42:31 +08:00
Add an assert in the Win32 lwIP port layer to catch invalid adapter numbers being used.
This commit is contained in:
@ -453,6 +453,15 @@ struct xEthernetIf *pxEthernetIf;
|
|||||||
|
|
||||||
/* initialize the hardware */
|
/* initialize the hardware */
|
||||||
prvLowLevelInit( pxNetIf );
|
prvLowLevelInit( pxNetIf );
|
||||||
|
|
||||||
|
/* Was an interface opened? */
|
||||||
|
if( pxOpenedInterfaceHandle == NULL )
|
||||||
|
{
|
||||||
|
/* Probably an invalid adapter number was defined in
|
||||||
|
FreeRTOSConfig.h. */
|
||||||
|
xReturn = ERR_VAL;
|
||||||
|
configASSERT( pxOpenedInterfaceHandle );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return xReturn;
|
return xReturn;
|
||||||
|
Reference in New Issue
Block a user