From 6339fcfdd360215212f609e04e4b20424e4e0523 Mon Sep 17 00:00:00 2001 From: RICHNER Jonathan Date: Wed, 16 Dec 2020 14:53:59 +0100 Subject: [PATCH] arch/arm/src/stm32h7/stm32_ethernet.c: Fix typo in multicast address hash table registers for STM32H7 --- arch/arm/src/stm32h7/stm32_ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32h7/stm32_ethernet.c b/arch/arm/src/stm32h7/stm32_ethernet.c index a829fdc328..cc2cd65f0b 100644 --- a/arch/arm/src/stm32h7/stm32_ethernet.c +++ b/arch/arm/src/stm32h7/stm32_ethernet.c @@ -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);