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 be6ebe8 commit 5837af2Copy full SHA for 5837af2
stm32cube/stm32h5xx/drivers/src/stm32h5xx_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