diff options
Diffstat (limited to 'embassy-std-examples/src/bin/serial.rs')
| -rw-r--r-- | embassy-std-examples/src/bin/serial.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/embassy-std-examples/src/bin/serial.rs b/embassy-std-examples/src/bin/serial.rs index 6d628fe14..79f10c418 100644 --- a/embassy-std-examples/src/bin/serial.rs +++ b/embassy-std-examples/src/bin/serial.rs | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | mod serial_port; | 6 | mod serial_port; |
| 7 | 7 | ||
| 8 | use async_io::Async; | 8 | use async_io::Async; |
| 9 | use embassy::executor::task; | ||
| 10 | use embassy::io::AsyncBufReadExt; | 9 | use embassy::io::AsyncBufReadExt; |
| 11 | use embassy::util::Forever; | 10 | use embassy::util::Forever; |
| 12 | use embassy_std::Executor; | 11 | use embassy_std::Executor; |
| @@ -15,7 +14,7 @@ use nix::sys::termios; | |||
| 15 | 14 | ||
| 16 | use self::serial_port::SerialPort; | 15 | use self::serial_port::SerialPort; |
| 17 | 16 | ||
| 18 | #[task] | 17 | #[embassy::task] |
| 19 | async fn run() { | 18 | async fn run() { |
| 20 | // Open the serial port. | 19 | // Open the serial port. |
| 21 | let baudrate = termios::BaudRate::B115200; | 20 | let baudrate = termios::BaudRate::B115200; |
