summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ltunify.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ltunify.c b/ltunify.c
index c0819d5..d8f301e 100644
--- a/ltunify.c
+++ b/ltunify.c
@@ -414,6 +414,12 @@ static bool do_read_skippy(int fd, struct hidpp_message *msg,
if (msg->report_id == exp_report_id && msg->sub_id == exp_sub_id) {
return true;
}
+
+ /* ignore non-HID++ reports (e.g. DJ reports) */
+ if (msg->report_id != SHORT_MESSAGE && msg->report_id != LONG_MESSAGE) {
+ continue;
+ }
+
// guess: 0xFF is error message in HID++ 2.0?
if (msg->report_id == LONG_MESSAGE && msg->sub_id == 0xFF) {
if (debug_enabled) {