arch/arm/src/stm32h7/stm32_ethernet.c: Fix typo in multicast address hash

table registers for STM32H7
This commit is contained in:
RICHNER Jonathan 2020-12-16 14:53:59 +01:00 committed by Xiang Xiao
parent 71715aaee8
commit 6339fcfdd3
1 changed files with 2 additions and 2 deletions

View File

@ -2803,12 +2803,12 @@ static int stm32_addmac(struct net_driver_s *dev, const uint8_t *mac)
if (hashindex > 31)
{
registeraddress = STM32_ETH_MACHT0R;
registeraddress = STM32_ETH_MACHT1R;
hashindex -= 32;
}
else
{
registeraddress = STM32_ETH_MACHT1R;
registeraddress = STM32_ETH_MACHT0R;
}
temp = stm32_getreg(registeraddress);