Fixing format
This commit is contained in:
parent
f3b4fa12b3
commit
f1504d284d
1 changed files with 4 additions and 1 deletions
|
|
@ -138,7 +138,10 @@ impl UdpSocket {
|
||||||
Ok((packet_size, remote))
|
Ok((packet_size, remote))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn socket_close<SpiBus: Bus>(&self, bus: &mut SpiBus) -> Result<(), UdpSocketError<SpiBus::Error>> {
|
fn socket_close<SpiBus: Bus>(
|
||||||
|
&self,
|
||||||
|
bus: &mut SpiBus,
|
||||||
|
) -> Result<(), UdpSocketError<SpiBus::Error>> {
|
||||||
self.socket.set_mode(bus, socketn::Protocol::Closed)?;
|
self.socket.set_mode(bus, socketn::Protocol::Closed)?;
|
||||||
self.socket.command(bus, socketn::Command::Close)?;
|
self.socket.command(bus, socketn::Command::Close)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue