basic TMTC interaction established

This commit is contained in:
2022-08-29 00:44:34 +02:00
parent 9b791b1de1
commit cc21785687
3 changed files with 53 additions and 36 deletions

View File

@ -42,10 +42,10 @@ impl<E> UdpTcServer<E> {
let res = match self.socket.recv_from(&mut self.recv_buf) {
Ok(res) => res,
Err(e) => {
if e.kind() != ErrorKind::WouldBlock {
return Err(ReceiveResult::WouldBlock);
return if e.kind() == ErrorKind::WouldBlock {
Err(ReceiveResult::WouldBlock)
} else {
return Err(ReceiveResult::OtherIoError(e));
Err(ReceiveResult::OtherIoError(e))
}
}
};