tools: fix up call to udev matching in hidconsole
This commit is contained in:
parent
3d3d0d4ccc
commit
3cd76aa191
|
@ -150,9 +150,13 @@ def _validate_input(line, hidpp=False):
|
|||
|
||||
|
||||
def _open(args):
|
||||
def matchfn(bid, vid, pid):
|
||||
if vid == 0x046d:
|
||||
return {'vid': 0x046d}
|
||||
|
||||
device = args.device
|
||||
if args.hidpp and not device:
|
||||
for d in _hid.enumerate(vendor_id=0x046d):
|
||||
for d in _hid.enumerate(matchfn):
|
||||
if d.driver == 'logitech-djreceiver':
|
||||
device = d.path
|
||||
break
|
||||
|
|
Loading…
Reference in New Issue