File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
source/portable/NetworkInterface/STM32 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,8 @@ static UBaseType_t prvNetworkInterfaceInput( void )
543543 {
544544 /*configASSERT( xEthHandle.RxDescList.RxDataLength <= EMAC_DATA_BUFFER_SIZE );*/
545545 xResult ++ ;
546+ pxCurDescriptor -> pxInterface = pxMyInterface ;
547+ pxCurDescriptor -> pxEndPoint = FreeRTOS_MatchingEndpoint ( pxMyInterface , pxCurDescriptor -> pucEthernetBuffer );;
546548 #if ( ipconfigUSE_LINKED_RX_MESSAGES != 0 )
547549 if ( pxStartDescriptor == NULL )
548550 {
@@ -559,7 +561,7 @@ static UBaseType_t prvNetworkInterfaceInput( void )
559561 {
560562 iptraceETHERNET_RX_EVENT_LOST ();
561563 FreeRTOS_debug_printf ( ( "prvNetworkInterfaceInput: xSendEventStructToIPTask failed\n" ) );
562- vReleaseNetworkBufferAndDescriptor ( pxStartDescriptor );
564+ vReleaseNetworkBufferAndDescriptor ( pxCurDescriptor );
563565 }
564566 #endif
565567 }
@@ -568,8 +570,6 @@ static UBaseType_t prvNetworkInterfaceInput( void )
568570 #if ( ipconfigUSE_LINKED_RX_MESSAGES != 0 )
569571 if ( xResult > 0 )
570572 {
571- pxStartDescriptor -> pxInterface = pxMyInterface ;
572- pxStartDescriptor -> pxEndPoint = FreeRTOS_MatchingEndpoint ( pxMyInterface , pxStartDescriptor -> pucEthernetBuffer );
573573 xRxEvent .pvData = ( void * ) pxStartDescriptor ;
574574 if ( xSendEventStructToIPTask ( & xRxEvent , ( TickType_t ) 100U ) != pdPASS )
575575 {
You can’t perform that action at this time.
0 commit comments