mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 00:02:28 +00:00
impl ReadReady for tcp call can_recv() insted of may_recv()
This commit is contained in:
parent
dc30bcfa2e
commit
87aca974b1
@ -555,7 +555,7 @@ mod embedded_io_impls {
|
||||
|
||||
impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> {
|
||||
fn read_ready(&mut self) -> Result<bool, Self::Error> {
|
||||
Ok(self.io.with(|s, _| s.may_recv()))
|
||||
Ok(self.io.with(|s, _| s.can_recv()))
|
||||
}
|
||||
}
|
||||
|
||||
@ -587,7 +587,7 @@ mod embedded_io_impls {
|
||||
|
||||
impl<'d> embedded_io_async::ReadReady for TcpReader<'d> {
|
||||
fn read_ready(&mut self) -> Result<bool, Self::Error> {
|
||||
Ok(self.io.with(|s, _| s.may_recv()))
|
||||
Ok(self.io.with(|s, _| s.can_recv()))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user