mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-28 04:47:47 +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 */
|
||||
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;
|
||||
|
Reference in New Issue
Block a user