- optimize event to parse opcode only once
- optimze channels - return mut ref for smoltcp rx
This commit is contained in:
@ -94,7 +94,7 @@ impl Mac {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn read(&self) -> Event {
|
||||
pub async fn read(&self) -> Result<Event<'_>, ()> {
|
||||
Event::new(self.tl_read().await)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user