From 62bddbe413be061ec3a8bb7d344ac738c395af47 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 27 Dec 2016 12:30:13 +0200 Subject: [PATCH] input/hog-lib: Attempt to read PNP values if not set --- profiles/input/hog-lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c index 9bffe5a82..b93324a12 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); -- 2.47.3