Skip to content

Commit

Permalink
Merge pull request #45 from enlyze/fix/example-native-async
Browse files Browse the repository at this point in the history
Fix building the example after the rename to `open_native_async`
  • Loading branch information
berkowski authored Jul 23, 2021
2 parents 641b217 + 3630d39 commit 48636b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serial_println.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn main() -> tokio_serial::Result<()> {
let mut args = env::args();
let tty_path = args.nth(1).unwrap_or_else(|| DEFAULT_TTY.into());

let mut port = tokio_serial::new(tty_path, 9600).open_async()?;
let mut port = tokio_serial::new(tty_path, 9600).open_native_async()?;

#[cfg(unix)]
port.set_exclusive(false)
Expand Down

0 comments on commit 48636b6

Please sign in to comment.