mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Add an assert in the Win32 lwIP port layer to catch invalid adapter numbers being used.
This commit is contained in:
parent
0e7c46fbd3
commit
9c25614cf4
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue