The FTDI PID should not be hardcoded, as it can be given in the constructor

See #372
This commit is contained in:
Kristian Sloth Lauszus 2018-04-09 10:47:24 +02:00
parent 16448e136f
commit 266f1355f5

View file

@ -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;