summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2019-11-10 14:38:42 +0100
committerNicolas Schodet2019-11-14 00:41:59 +0100
commit2365eb0d2351308e9f2bf445dc59a84bedc03e7a (patch)
tree6fdfc52111f30b933e1606b139630c5edc53d6b3
parent26e77466107b72fdd9a0f382b80664876155713f (diff)
Moticam use a different product id on USB3
-rw-r--r--moticam.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/moticam.c b/moticam.c
index 03dccd6..fd4c1e5 100644
--- a/moticam.c
+++ b/moticam.c
@@ -33,6 +33,7 @@
#define ID_VENDOR 0x232f
#define ID_PRODUCT 0x0100
+#define ID_PRODUCT_USB3 0x0101
struct moticam_device {
struct device device;
@@ -287,7 +288,9 @@ moticam_close(struct device *device)
static char *
moticam_usb_poll(struct libusb_device_descriptor *desc)
{
- if (desc->idVendor == ID_VENDOR && desc->idProduct == ID_PRODUCT)
+ if (desc->idVendor == ID_VENDOR
+ && (desc->idProduct == ID_PRODUCT
+ || desc->idProduct == ID_PRODUCT_USB3))
return strdup("Moticam 3+");
else
return NULL;