Skip to content

Commit

Permalink
tools: permit BT devices for hidconsole with hidpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Sep 15, 2023
1 parent 963f54d commit f123abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hidapi/hidconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def matchfn(bid, vid, pid, _a, _b):
(handle, _hid.get_manufacturer(handle), _hid.get_product(handle), _hid.get_serial(handle))
)
if args.hidpp:
if _hid.get_manufacturer(handle) != b'Logitech':
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:
Expand Down

0 comments on commit f123abc

Please sign in to comment.