Updated dependencies, fixed port closing after receive
This commit is contained in:
parent
dfa252f997
commit
52f0d06e30
2 changed files with 3 additions and 2 deletions
|
|
@ -123,7 +123,8 @@ impl UdpSocket {
|
|||
let tx_write_pointer = self.socket.get_tx_write_pointer(bus)?;
|
||||
self.socket
|
||||
.set_rx_read_pointer(bus, tx_write_pointer)
|
||||
.and_then(|_| self.socket.command(bus, socketn::Command::Receive))?;
|
||||
.and_then(|_| self.socket.command(bus, socketn::Command::Receive))
|
||||
.and_then(|_| self.socket.command(bus, socketn::Command::Open))?;
|
||||
Ok((packet_size, remote))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue