Skip to content

Commit 9576301

Browse files
authored
Merge pull request #13 from bjsowa/dev-stm32-fix-mac-index
Increment MAC entry index
2 parents c18bfe7 + 0abb36b commit 9576301

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)