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 f131715 commit f29bb5fCopy full SHA for f29bb5f
stm32cube/stm32h7xx/drivers/src/stm32h7xx_hal_eth.c
@@ -1218,7 +1218,7 @@ static void ETH_UpdateDescriptor(ETH_HandleTypeDef *heth)
1218
if (heth->RxDescList.RxBuildDescCnt != desccount)
1219
{
1220
/* Set the tail pointer index */
1221
- tailidx = (descidx + 1U) % ETH_RX_DESC_CNT;
+ tailidx = (ETH_RX_DESC_CNT + descidx + 1U) % ETH_RX_DESC_CNT;
1222
1223
/* DMB instruction to avoid race condition */
1224
__DMB();
0 commit comments