From 8acf883d97ea30a098621ac7128e5d40ba90f496 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 22 Dec 2019 00:35:48 +0200 Subject: [PATCH] formatting and whitespace fix for the recent pull request merge --- src/dev.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dev.c b/src/dev.c index e628d4c..8b72932 100644 --- a/src/dev.c +++ b/src/dev.c @@ -265,10 +265,12 @@ static int match_usbdev(const struct usb_device_info *devinfo) /* match any device with the new 3Dconnexion device id */ if(vid == VENDOR_3DCONNEXION) { - if (devinfo->productid == 0xc652 && strstr(devinfo->name, "Universal Receiver Mouse")) { + /* avoid matching and trying to grab the CAD mouse, when connected + * on the same universal receiver as the spacemouse. + */ + if(pid == 0xc652 && strstr(devinfo->name, "Universal Receiver Mouse")) { return 0; } - return 1; }