Skip to content

Commit

Permalink
Stick to filtering out LPT ports on Windows
Browse files Browse the repository at this point in the history
According to issue serialport#187 null-modem ports are appearing as CNCxy and
there have not been complaints about other devices showing up
unintendedly so far.
  • Loading branch information
sirhcel committed May 12, 2024
1 parent b8f065d commit 0720d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ pub fn available_ports() -> Result<Vec<SerialPortInfo>> {
);

// This technique also returns parallel ports, so we filter these out.
if !port_name.starts_with("COM") {
if port_name.starts_with("LPT") {
continue;
}

Expand Down

0 comments on commit 0720d5a

Please sign in to comment.