diff options
| author | davidskula <[email protected]> | 2024-05-07 16:07:00 +0200 |
|---|---|---|
| committer | davidskula <[email protected]> | 2024-05-07 16:07:00 +0200 |
| commit | 87aca974b10c810c69d12ddb90669a2b7ec60c0b (patch) | |
| tree | 69790d79888deb22263d4cf60430c1854a4f3ea7 /embassy-net/src | |
| parent | dc30bcfa2ef41a7dfef0d9946ca09b783cea9c06 (diff) | |
impl ReadReady for tcp call can_recv() insted of may_recv()
Diffstat (limited to 'embassy-net/src')
| -rw-r--r-- | embassy-net/src/tcp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 57c9b7a04..9dfbba32b 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -555,7 +555,7 @@ mod embedded_io_impls { | |||
| 555 | 555 | ||
| 556 | impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> { | 556 | impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> { |
| 557 | fn read_ready(&mut self) -> Result<bool, Self::Error> { | 557 | fn read_ready(&mut self) -> Result<bool, Self::Error> { |
| 558 | Ok(self.io.with(|s, _| s.may_recv())) | 558 | Ok(self.io.with(|s, _| s.can_recv())) |
| 559 | } | 559 | } |
| 560 | } | 560 | } |
| 561 | 561 | ||
| @@ -587,7 +587,7 @@ mod embedded_io_impls { | |||
| 587 | 587 | ||
| 588 | impl<'d> embedded_io_async::ReadReady for TcpReader<'d> { | 588 | impl<'d> embedded_io_async::ReadReady for TcpReader<'d> { |
| 589 | fn read_ready(&mut self) -> Result<bool, Self::Error> { | 589 | fn read_ready(&mut self) -> Result<bool, Self::Error> { |
| 590 | Ok(self.io.with(|s, _| s.may_recv())) | 590 | Ok(self.io.with(|s, _| s.can_recv())) |
| 591 | } | 591 | } |
| 592 | } | 592 | } |
| 593 | 593 | ||
