eth-v2: Fix off by one bug
This commit is contained in:
parent
54ad2a41f1
commit
0b42e12604
@ -340,7 +340,7 @@ impl<const N: usize> RDesRing<N> {
|
||||
unsafe {
|
||||
ETH.ethernet_dma()
|
||||
.dmacrx_dtpr()
|
||||
.write(|w| w.set_rdt(&self.rd[self.read_idx] as *const _ as u32));
|
||||
.write(|w| w.set_rdt(&self.rd[self.tail_idx] as *const _ as u32));
|
||||
}
|
||||
|
||||
self.tail_idx = (self.tail_idx + 1) % N;
|
||||
|
Loading…
Reference in New Issue
Block a user