tools: fix bug in scan-registers

This commit is contained in:
Peter F. Patel-Schneider 2023-07-19 13:00:24 -04:00
parent 90a0408bd6
commit 253930d628
2 changed files with 2 additions and 3 deletions

View File

@ -158,7 +158,7 @@ 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 args.hidpp:
if False and args.hidpp:
if _hid.get_manufacturer(handle) != b'Logitech':
sys.exit('!! Only Logitech devices support the HID++ protocol.')
print('.. HID++ validation enabled.')

View File

@ -14,8 +14,7 @@ fi
HIDRAW=$2
do_req() {
## "$HC" $HIDRAW
"$HC" $HIDRAW | grep -v "^<< " | grep -v "\[1. .. 8F.. "
"$HC" --hidpp $HIDRAW | grep "^>> " | grep -v "\[1. .. 8F.. "
}
req00="$(mktemp --tmpdir req00-XXXXXX)"