temp fix for serialport on macos 11

This commit is contained in:
Anatol Ulrich 2021-04-20 12:24:49 +02:00
parent 15f011b21f
commit c658680a00
2 changed files with 3 additions and 2 deletions

View file

@ -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"

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, 9600).open()?;
static CONTINUE: AtomicBool = AtomicBool::new(true);