diff --git a/lib/hidapi/hidconsole.py b/lib/hidapi/hidconsole.py index bb95ce77..bc7bf4c0 100644 --- a/lib/hidapi/hidconsole.py +++ b/lib/hidapi/hidconsole.py @@ -158,8 +158,8 @@ def _open(args): '.. Opened handle %r, vendor %r product %r serial %r.' % (handle, _hid.get_manufacturer(handle), _hid.get_product(handle), _hid.get_serial(handle)) ) - if False and args.hidpp: - if _hid.get_manufacturer(handle) != b'Logitech': + if args.hidpp: + if _hid.get_manufacturer(handle) is not None and _hid.get_manufacturer(handle) != b'Logitech': sys.exit('!! Only Logitech devices support the HID++ protocol.') print('.. HID++ validation enabled.') else: diff --git a/lib/logitech_receiver/descriptors.py b/lib/logitech_receiver/descriptors.py index 4a390ad0..4535bc4d 100644 --- a/lib/logitech_receiver/descriptors.py +++ b/lib/logitech_receiver/descriptors.py @@ -307,7 +307,7 @@ _D('G500s Gaming Mouse', codename='G500s Gaming', usbid=0xc24e, interface=1, pro _D('G502 Proteus Spectrum Optical Mouse', codename='G502 Proteus Spectrum', usbid=0xc332, interface=1) _D('Logitech PRO Gaming Keyboard', codename='PRO Gaming Keyboard', usbid=0xc339, interface=1) -_D('Logitech MX Revolution Mouse M-RCL 124', codename='M-RCL 124', usbid=0xb007, interface=1) +_D('Logitech MX Revolution Mouse M-RCL 124', codename='M-RCL 124', btid=0xb007, interface=1) # Trackballs