Diff between f0fd6fdaa846cee1572e05d99fae5579c692ffc3 and 464e962ef07f02e776b6bf9f61a6f72bc47540f3
Changed Files
| File | Additions | Deletions | Status |
| profiles/input/hog_device.c | +7 | -2 | modified |
Full Patch
diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c
index 994437f..0a5fb58 100644
--- a/profiles/input/hog_device.c
+++ b/profiles/input/hog_device.c
@@ -549,8 +549,13 @@ static void forward_report(struct hog_device *hogdev,
int size;
guint type;
- data = ev->u.output.data;
- size = ev->u.output.size;
+ if (hogdev->prepend_id) {
+ data = ev->u.output.data + 1;
+ size = ev->u.output.size - 1;
+ } else {
+ data = ev->u.output.data;
+ size = ev->u.output.size;
+ }
switch (ev->type) {
case UHID_OUTPUT: