Skip to content

Commit

Permalink
Convert /sys/class/tty path to /dev
Browse files Browse the repository at this point in the history
Thanks @KiC6280
  • Loading branch information
Martin Donlon committed Sep 28, 2024
1 parent 595d43e commit 22365ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/picolink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ fn enumerate_ports() -> Result<Vec<String>> {
match &p.port_type {
serialport::SerialPortType::UsbPort(info) => {
if info.vid == 0x2e8a && info.pid == 0x000a {
ports.push(p.port_name.clone());
ports.push(p.port_name.clone().replace("sys/class/tty", "dev"));
}
}
_ => {}
Expand Down

0 comments on commit 22365ad

Please sign in to comment.