Skip to content

Commit

Permalink
Merge pull request #3 from bjsowa/dev-stm32-rx-fix
Browse files Browse the repository at this point in the history
Fill Interface and EndPoint fields for all Rx Network buffers
  • Loading branch information
HTRamsey authored Aug 31, 2023
2 parents 67db92d + 1073648 commit d8d3f96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/portable/NetworkInterface/STM32/NetworkInterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ static UBaseType_t prvNetworkInterfaceInput( void )
{
/*configASSERT( xEthHandle.RxDescList.RxDataLength <= EMAC_DATA_BUFFER_SIZE );*/
xResult++;
pxCurDescriptor->pxInterface = pxMyInterface;
pxCurDescriptor->pxEndPoint = FreeRTOS_MatchingEndpoint( pxMyInterface, pxCurDescriptor->pucEthernetBuffer );;
#if ( ipconfigUSE_LINKED_RX_MESSAGES != 0 )
if ( pxStartDescriptor == NULL )
{
Expand All @@ -559,7 +561,7 @@ static UBaseType_t prvNetworkInterfaceInput( void )
{
iptraceETHERNET_RX_EVENT_LOST();
FreeRTOS_debug_printf( ( "prvNetworkInterfaceInput: xSendEventStructToIPTask failed\n" ) );
vReleaseNetworkBufferAndDescriptor( pxStartDescriptor );
vReleaseNetworkBufferAndDescriptor( pxCurDescriptor );
}
#endif
}
Expand All @@ -568,8 +570,6 @@ static UBaseType_t prvNetworkInterfaceInput( void )
#if ( ipconfigUSE_LINKED_RX_MESSAGES != 0 )
if( xResult > 0 )
{
pxStartDescriptor->pxInterface = pxMyInterface;
pxStartDescriptor->pxEndPoint = FreeRTOS_MatchingEndpoint( pxMyInterface, pxStartDescriptor->pucEthernetBuffer );
xRxEvent.pvData = ( void * ) pxStartDescriptor;
if( xSendEventStructToIPTask( &xRxEvent, ( TickType_t ) 100U ) != pdPASS )
{
Expand Down

0 comments on commit d8d3f96

Please sign in to comment.