mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
The FTDI PID should not be hardcoded, as it can be given in the constructor
See #372
This commit is contained in:
parent
16448e136f
commit
266f1355f5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue