diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-08-07 13:43:09 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-07 13:43:09 +0200 |
| commit | 5d5cd2371504915a531e669dce3558485a51a2e1 (patch) | |
| tree | 5d0093e9e5005d3a946e92686a9dc79565c3043f /examples/std/src/bin/serial.rs | |
| parent | 77844e2055319e1af7dd50fdb2e39ef88c6a5010 (diff) | |
Update to embedded-io 0.5 (#1752)
Diffstat (limited to 'examples/std/src/bin/serial.rs')
| -rw-r--r-- | examples/std/src/bin/serial.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/std/src/bin/serial.rs b/examples/std/src/bin/serial.rs index 85ee54f70..0b289c74d 100644 --- a/examples/std/src/bin/serial.rs +++ b/examples/std/src/bin/serial.rs | |||
| @@ -5,7 +5,7 @@ mod serial_port; | |||
| 5 | 5 | ||
| 6 | use async_io::Async; | 6 | use async_io::Async; |
| 7 | use embassy_executor::Executor; | 7 | use embassy_executor::Executor; |
| 8 | use embedded_io::asynch::Read; | 8 | use embedded_io_async::Read; |
| 9 | use log::*; | 9 | use log::*; |
| 10 | use nix::sys::termios; | 10 | use nix::sys::termios; |
| 11 | use static_cell::StaticCell; | 11 | use static_cell::StaticCell; |
| @@ -29,7 +29,7 @@ async fn run() { | |||
| 29 | // | 29 | // |
| 30 | // This is not really needed, you could write the code below using futures::io directly. | 30 | // This is not really needed, you could write the code below using futures::io directly. |
| 31 | // It's useful if you want to have portable code across embedded and std. | 31 | // It's useful if you want to have portable code across embedded and std. |
| 32 | let mut port = embedded_io::adapters::FromFutures::new(port); | 32 | let mut port = embedded_io_adapters::futures_03::FromFutures::new(port); |
| 33 | 33 | ||
| 34 | info!("Serial opened!"); | 34 | info!("Serial opened!"); |
| 35 | 35 | ||
