Skip to content

Commit 0abb36b

Browse files
committed
Increment MAC entry index
1 parent c18bfe7 commit 0abb36b

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
@@ -1570,7 +1570,7 @@ static BaseType_t prvSetNewDestMACAddrMatch( ETH_TypeDef * const pxEthInstance,
15701570
if( ucAddrHashCounters[ ucHashIndex ] == 0U )
15711571
{
15721572
prvHAL_ETH_SetDestMACAddrMatch( pxEthInstance, uxMACEntryIndex, pucMACAddr );
1573-
ucSrcMatchCounters[ uxMACEntryIndex ] = 1U;
1573+
ucSrcMatchCounters[ uxMACEntryIndex++ ] = 1U;
15741574
xResult = pdTRUE;
15751575
}
15761576
}

0 commit comments

Comments
 (0)