forked from M-Labs/ionpak-thermostat
Revert "Revert the rx_buf_release() change in 8491394a."
This reverts commit 724221c643
.
This commit is contained in:
parent
13aa02a318
commit
cbdd2c409c
|
@ -309,13 +309,13 @@ impl DeviceInner {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn rx_buf_release(&mut self) {
|
fn rx_buf_release(&mut self) {
|
||||||
|
self.rx_desc_buf[self.rx_cur_desc + 0] = EMAC_RDES0_OWN;
|
||||||
|
|
||||||
self.rx_cur_desc += ETH_DESC_U32_SIZE;
|
self.rx_cur_desc += ETH_DESC_U32_SIZE;
|
||||||
if self.rx_cur_desc == self.rx_desc_buf.len() {
|
if self.rx_cur_desc == self.rx_desc_buf.len() {
|
||||||
self.rx_cur_desc = 0;
|
self.rx_cur_desc = 0;
|
||||||
}
|
}
|
||||||
self.rx_counter += 1;
|
self.rx_counter += 1;
|
||||||
|
|
||||||
self.rx_desc_buf[self.rx_cur_desc + 0] = EMAC_RDES0_OWN;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TX buffer functions
|
// TX buffer functions
|
||||||
|
|
Loading…
Reference in New Issue