mirror of
https://github.com/Lekensteyn/ltunify.git
synced 2025-12-08 17:53:23 +00:00
shell: support DJ reports
This commit is contained in:
8
shell
8
shell
@@ -14,9 +14,9 @@ hidw() {
|
|||||||
Usage: hidw /dev/hidrawX [data]
|
Usage: hidw /dev/hidrawX [data]
|
||||||
|
|
||||||
data are hexadecimal numbers in the range 0x0-0xff ('0x' prefix is
|
data are hexadecimal numbers in the range 0x0-0xff ('0x' prefix is
|
||||||
optional). Missing bytes for HID++ messages (0x10 and 0x11) will be
|
optional). Missing bytes for HID++ reports (0x10 and 0x11) and DJ
|
||||||
padded by zeroes unless you end with .. as in the following
|
reports (0x20 and 0x21) will be padded by zeroes unless you end with ..
|
||||||
(non-meaningful) example:
|
as in the following (non-meaningful) example:
|
||||||
|
|
||||||
hidw /dev/hidraw0 10 ff 81 ff..
|
hidw /dev/hidraw0 10 ff 81 ff..
|
||||||
|
|
||||||
@@ -51,6 +51,8 @@ HELP
|
|||||||
case ${bytes[0]} in
|
case ${bytes[0]} in
|
||||||
10) length=7 ;;
|
10) length=7 ;;
|
||||||
11) length=20 ;;
|
11) length=20 ;;
|
||||||
|
20) length=15 ;;
|
||||||
|
21) length=32 ;;
|
||||||
*) echo "Unknown report type ${bytes[0]}, not padding " ;;
|
*) echo "Unknown report type ${bytes[0]}, not padding " ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user