Merge pull request #145 from ferrous-systems/macos-usb-hotfix

temp fix for serialport on macos 11
This commit is contained in:
Anatol Ulrich 2021-04-20 21:02:31 +02:00 committed by GitHub
commit 70037a408f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -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"
xmas-elf = "0.7.0"

View file

@ -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);