mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 14:33:52 +01:00
Merge pull request #18416 from maribu/cpu/stm32/periph/stm32_eth/bugfix
cpu/stm32/periph_eth: fix horrible memory corruption bug
This commit is contained in:
commit
26faa881b6
@ -242,7 +242,7 @@ static void _init_dma_descriptors(void)
|
||||
for (i = 0; i < ETH_TX_DESCRIPTOR_COUNT - 1; i++) {
|
||||
tx_desc[i].desc_next = &tx_desc[i + 1];
|
||||
}
|
||||
tx_desc[ETH_RX_DESCRIPTOR_COUNT - 1].desc_next = &tx_desc[0];
|
||||
tx_desc[ETH_TX_DESCRIPTOR_COUNT - 1].desc_next = &tx_desc[0];
|
||||
|
||||
rx_curr = &rx_desc[0];
|
||||
tx_curr = &tx_desc[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user