Skip to content

Commit 445dc68

Browse files
committed
Fix packet length assert
1 parent 9576301 commit 445dc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/portable/NetworkInterface/STM32/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ static BaseType_t prvNetworkInterfaceInput( ETH_HandleTypeDef * pxEthHandle,
840840
continue;
841841
}
842842

843-
configASSERT( pxEthHandle->RxDescList.RxDataLength <= niEMAC_DATA_BUFFER_SIZE );
843+
configASSERT( pxCurDescriptor->xDataLength <= niEMAC_DATA_BUFFER_SIZE );
844844

845845
pxCurDescriptor->pxInterface = pxInterface;
846846
pxCurDescriptor->pxEndPoint = FreeRTOS_MatchingEndpoint( pxCurDescriptor->pxInterface, pxCurDescriptor->pucEthernetBuffer );

0 commit comments

Comments
 (0)