arch/arm/src/stm32h7/stm32_ethernet.c: Fix typo in multicast address hash
table registers for STM32H7
This commit is contained in:
parent
71715aaee8
commit
6339fcfdd3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue