Skip to content

Commit

Permalink
Merge pull request #18420 from maribu/backport/2022.07/cpu/stm32/peri…
Browse files Browse the repository at this point in the history
…ph/stm32_eth/bugfix

cpu/stm32/periph_eth: fix typo in initialization code [backport 2022.07]
  • Loading branch information
chrysn authored Aug 9, 2022
2 parents 4908149 + 8aefb7e commit f1945d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/stm32/periph/eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f1945d9

Please sign in to comment.