From c658680a00237208a995f83180159c9002aff769 Mon Sep 17 00:00:00 2001 From: Anatol Ulrich Date: Tue, 20 Apr 2021 12:24:49 +0200 Subject: [PATCH] temp fix for serialport on macos 11 --- xtask/Cargo.toml | 3 ++- xtask/src/tasks.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 2bd3968..06cb7e2 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -12,6 +12,7 @@ hidapi = "1.2.2" ihex = "1.1.2" pids = { path = "../common/pids" } rusb = "0.5.5" -serialport = "3.3.0" +#serialport = "3.3.0" +serialport = { git = "https://gitlab.com/spookyvision1/serialport-rs.git", branch = "fix-usb-deprecation"} tempfile = "3.2.0" xmas-elf = "0.7.0" \ No newline at end of file diff --git a/xtask/src/tasks.rs b/xtask/src/tasks.rs index 5fd6c1b..f2cd382 100644 --- a/xtask/src/tasks.rs +++ b/xtask/src/tasks.rs @@ -198,7 +198,7 @@ pub fn serial_term() -> color_eyre::Result<()> { } }; - let mut port = serialport::open(&dongle.port_name)?; + let mut port = serialport::new(&dongle.port_name, 9600).open()?; static CONTINUE: AtomicBool = AtomicBool::new(true);