diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-04-07 23:41:35 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-04-07 23:41:35 +0200 |
commit | 4d1993f70811476a5d43b98c3ce3255c140020fa (patch) | |
tree | 967ac7a146939ed715889e53e44e744c7ff5dacc | |
parent | ed51ebee332da4872db3913f8d61f248fb3438a5 (diff) | |
download | ltunify-4d1993f70811476a5d43b98c3ce3255c140020fa.tar.gz |
lib/hidpp: add unifying PID for hid-generic
The third interface may still be bound to hid-generic without needing
hid-logitech-dj.
-rw-r--r-- | lib/hidpp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/hidpp.c b/lib/hidpp.c index 98e91fe..ae286f6 100644 --- a/lib/hidpp.c +++ b/lib/hidpp.c @@ -28,8 +28,9 @@ #include "hidpp.h" #include "debug.h" -#define VID_LOGITECH 0x046d -#define PID_NANO_RECEIVER 0xc52f +#define VID_LOGITECH 0x046d +#define PID_UNIFYING 0xc52b +#define PID_NANO_RECEIVER 0xc52f #define RECEIVER_NAME "logitech-djreceiver" static inline bool is_valid_device_index(uint8_t ix) @@ -117,7 +118,8 @@ int hidpp_open(void) fclose(fp); } - if (vid != VID_LOGITECH || pid != PID_NANO_RECEIVER) { + if (vid != VID_LOGITECH || + (pid != PID_UNIFYING && pid != PID_NANO_RECEIVER)) { continue; } } else { /* unknown driver */ |