We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d389e8b commit 8887ebeCopy full SHA for 8887ebe
source/portable/NetworkInterface/STM32/Legacy/STM32Hxx/NetworkInterface.c
@@ -392,7 +392,8 @@ static BaseType_t xSTM32H_NetworkInterfaceInitialise( NetworkInterface_t * pxInt
392
393
#if ( ipconfigZERO_COPY_RX_DRIVER != 0 )
394
{
395
- pucBuffer = pucGetRXBuffer( ETH_RX_BUF_SIZE );
+ /* Subtracted 'ipBUFFER_PADDING', which is the size of the meta data. */
396
+ pucBuffer = pucGetRXBuffer( ETH_RX_BUF_SIZE - ipBUFFER_PADDING );
397
configASSERT( pucBuffer != NULL );
398
}
399
#else
0 commit comments