Diff between c9ec8ef446a4d55f2521c87feaf432b42cd98906 and 62bddbe413be061ec3a8bb7d344ac738c395af47
Changed Files
| File | Additions | Deletions | Status |
| profiles/input/hog-lib.c | +5 | -0 | modified |
Full Patch
diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 9bffe5a..b93324a 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -1392,6 +1392,11 @@ struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor,
hog_free(hog);
return NULL;
}
+
+ /* Try creating a DIS instance in case pid/vid are not set */
+ if (!vendor && !product) {
+ hog->dis = bt_dis_new(db);
+ }
}
return bt_hog_ref(hog);