From 266f1355f58b77fee7f8a212928ce8e1cc6557f6 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Mon, 9 Apr 2018 10:47:24 +0200 Subject: [PATCH] The FTDI PID should not be hardcoded, as it can be given in the constructor See #372 --- cdcftdi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdcftdi.h b/cdcftdi.h index 435891da..4fd08fd3 100644 --- a/cdcftdi.h +++ b/cdcftdi.h @@ -139,7 +139,7 @@ public: void EndpointXtract(uint8_t conf, uint8_t iface, uint8_t alt, uint8_t proto, const USB_ENDPOINT_DESCRIPTOR *ep); virtual bool VIDPIDOK(uint16_t vid, uint16_t pid) { - return (vid == FTDI_VID && pid == FTDI_PID); + return (vid == FTDI_VID && pid == wIdProduct); } virtual bool isReady() { return ready;