aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/serial.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-08-07 13:43:09 +0200
committerGitHub <[email protected]>2023-08-07 13:43:09 +0200
commit5d5cd2371504915a531e669dce3558485a51a2e1 (patch)
tree5d0093e9e5005d3a946e92686a9dc79565c3043f /examples/std/src/bin/serial.rs
parent77844e2055319e1af7dd50fdb2e39ef88c6a5010 (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.rs4
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
6use async_io::Async; 6use async_io::Async;
7use embassy_executor::Executor; 7use embassy_executor::Executor;
8use embedded_io::asynch::Read; 8use embedded_io_async::Read;
9use log::*; 9use log::*;
10use nix::sys::termios; 10use nix::sys::termios;
11use static_cell::StaticCell; 11use 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