summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-08-30 22:48:32 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-08-30 22:48:32 +0200
commit9f243e3704dad898afa4f35b093db4fa915ad256 (patch)
treecefd6118240172bcbc3810d1e28e3d997be74935
parentffaa47be5786ac269ba3754b84c9998f8e3f2658 (diff)
downloadltunify-9f243e3704dad898afa4f35b093db4fa915ad256.tar.gz
shell: support DJ reports
-rwxr-xr-xshell8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell b/shell
index b1ec2f3..039f404 100755
--- a/shell
+++ b/shell
@@ -14,9 +14,9 @@ hidw() {
Usage: hidw /dev/hidrawX [data]
data are hexadecimal numbers in the range 0x0-0xff ('0x' prefix is
-optional). Missing bytes for HID++ messages (0x10 and 0x11) will be
-padded by zeroes unless you end with .. as in the following
-(non-meaningful) example:
+optional). Missing bytes for HID++ reports (0x10 and 0x11) and DJ
+reports (0x20 and 0x21) will be padded by zeroes unless you end with ..
+as in the following (non-meaningful) example:
hidw /dev/hidraw0 10 ff 81 ff..
@@ -51,6 +51,8 @@ HELP
case ${bytes[0]} in
10) length=7 ;;
11) length=20 ;;
+ 20) length=15 ;;
+ 21) length=32 ;;
*) echo "Unknown report type ${bytes[0]}, not padding " ;;
esac