forked from M-Labs/ionpak-thermostat
Fix RxRing::buf_release.
The original code was correct after all.
This commit is contained in:
parent
308ad97586
commit
b13ef96bbe
@ -166,13 +166,13 @@ impl RxRing {
|
||||
}
|
||||
|
||||
fn buf_release(&mut self) {
|
||||
self.desc_buf[self.cur_desc + 0] = EMAC_RDES0_OWN;
|
||||
|
||||
self.cur_desc += ETH_DESC_U32_SIZE;
|
||||
if self.cur_desc == self.desc_buf.len() {
|
||||
self.cur_desc = 0;
|
||||
}
|
||||
self.counter += 1;
|
||||
|
||||
self.desc_buf[self.cur_desc + 0] = EMAC_RDES0_OWN;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user