From c370eed42dbf729008440ce0f0110c9820dae5a4 Mon Sep 17 00:00:00 2001 From: edouardparis Date: Tue, 25 Jun 2024 11:06:21 +0200 Subject: [PATCH] Do not check for Pci in serial com I do not know what i was thinking while scanning for Pci port. A Pci port may hold the communication and it is unclear to know if it is an external hardware wallet. --- src/jade/mod.rs | 1 - src/specter.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/jade/mod.rs b/src/jade/mod.rs index 5f87919..73d1303 100644 --- a/src/jade/mod.rs +++ b/src/jade/mod.rs @@ -440,7 +440,6 @@ impl SerialTransport { Ok(ports) => Ok(ports .into_iter() .filter_map(|p| match p.port_type { - SerialPortType::PciPort => Some(p.port_name), SerialPortType::UsbPort(info) => { if JADE_DEVICE_IDS.contains(&(info.vid, info.pid)) { Some(p.port_name) diff --git a/src/specter.rs b/src/specter.rs index e019aba..509ccab 100644 --- a/src/specter.rs +++ b/src/specter.rs @@ -284,7 +284,6 @@ impl SerialTransport { Ok(ports) => Ok(ports .into_iter() .filter_map(|p| match p.port_type { - SerialPortType::PciPort => Some(p.port_name), SerialPortType::UsbPort(info) => { if info.vid == SerialTransport::SPECTER_VID && info.pid == SerialTransport::SPECTER_PID