diff --git a/src/lib/drivers/pn533.c b/src/lib/drivers/pn533.c index faf50d0..ae5353f 100644 --- a/src/lib/drivers/pn533.c +++ b/src/lib/drivers/pn533.c @@ -80,8 +80,10 @@ static void get_end_points(struct usb_device *dev, dev_spec_pn533* pdsp) dev_info* pn533_connect(const nfc_device_desc_t* pndd) { - int idvendor = 0x04e6; - int idproduct = 0x5591; + int idvendor = 0x04cc; + int idproduct = 0x2533; + int idvendor_alt = 0x04e6; + int idproduct_alt = 0x5591; struct usb_bus *bus; struct usb_device *dev; dev_info* pdi = INVALID_DEVICE_INFO; @@ -108,7 +110,8 @@ dev_info* pn533_connect(const nfc_device_desc_t* pndd) { for (dev = bus->devices; dev; dev = dev->next) { - if (idvendor==dev->descriptor.idVendor && idproduct==dev->descriptor.idProduct) + if ((idvendor==dev->descriptor.idVendor && idproduct==dev->descriptor.idProduct) || + (idvendor_alt==dev->descriptor.idVendor && idproduct_alt==dev->descriptor.idProduct)) { // Make sure there are 2 endpoints available if (dev->config->interface->altsetting->bNumEndpoints < 2) return pdi;