Skip to content

Commit

Permalink
Remove hard-coded vendor/product ID in usb_open.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnold committed Dec 12, 2023
1 parent 5e4f033 commit 9200d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hacklet/src/serial_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl SerialConnection {

fn usb_open(vendor: u16, product: u16) -> Result<Ftdi, FtStatus> {
debug!("Opening USB device");
libftd2xx::set_vid_pid(0x0403u16,0x8c81u16)?;
libftd2xx::set_vid_pid(vendor, product)?;
trace!("Successfully set FTDI VID/PID");

let devices = match libftd2xx::list_devices() {
Expand Down

0 comments on commit 9200d91

Please sign in to comment.