1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/sam0_common: ethernet: fix RX detection

Detect RX of frame also when other bits of RSR are set.

fixes #16298
This commit is contained in:
Benjamin Valentin 2021-04-23 17:44:59 +02:00
parent c0c3a76fb8
commit 3f0459288c

View File

@ -151,7 +151,7 @@ void isr_gmac(void)
tsr = GMAC->TSR.reg;
rsr = GMAC->RSR.reg;
if (rsr == GMAC_RSR_REC) {
if (rsr & GMAC_RSR_REC) {
netdev_trigger_event_isr(_sam0_eth_dev.netdev);
}