Made dump_register suppress any errors
This commit is contained in:
parent
4ff4bc95c9
commit
3dbb2d4e64
2 changed files with 5 additions and 5 deletions
|
|
@ -34,8 +34,8 @@ impl<SpiBus: ActiveBus, NetworkImpl: Network, SocketImpl: Socket>
|
|||
Ok(UdpSocket { w5500, socket })
|
||||
}
|
||||
|
||||
pub fn dump_register(&mut self) -> Result<[u8; 0x30], SpiBus::Error> {
|
||||
Ok(self.socket.dump_register(&mut self.w5500.bus)?)
|
||||
pub fn dump_register(&mut self) -> [u8; 0x30] {
|
||||
self.socket.dump_register(&mut self.w5500.bus)
|
||||
}
|
||||
|
||||
/// Returns a UDP packet if one is available. Will return `None` if no UDP packets are in the socket's buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue