diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 2bd3968..89342e1 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -12,6 +12,9 @@ hidapi = "1.2.2" ihex = "1.1.2" pids = { path = "../common/pids" } rusb = "0.5.5" -serialport = "3.3.0" +# Note: we are using a fork due compatibility problems. +# See https://github.com/ferrous-systems/embedded-trainings-2020/issues/148 for more details. +# serialport = "4.0.2" +serialport = { git = "https://github.com/ferrous-systems/serialport-rs-hotfix.git", branch = "fix-usb-deprecation"} tempfile = "3.2.0" -xmas-elf = "0.7.0" \ No newline at end of file +xmas-elf = "0.7.0" diff --git a/xtask/src/tasks.rs b/xtask/src/tasks.rs index 5fd6c1b..abcb1be 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, 115200).open()?; static CONTINUE: AtomicBool = AtomicBool::new(true);