From 514f79dfe5fe065175f309ad90e5cffa9e54543b Mon Sep 17 00:00:00 2001 From: Juha Kuikka Date: Fri, 24 Feb 2017 16:13:26 -0800 Subject: [PATCH] hog: When no VID&PID also register a DIS notifier DIS was reading VID & PID but they were not communicated to the HOG due to lack of registered notifier. Add a notified also in this case. --- profiles/input/hog-lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c index 71de3a1b8..dab385fe7 100644 --- a/profiles/input/hog-lib.c +++ b/profiles/input/hog-lib.c @@ -1406,6 +1406,7 @@ struct bt_hog *bt_hog_new(int fd, const char *name, uint16_t vendor, /* Try creating a DIS instance in case pid/vid are not set */ if (!vendor && !product) { hog->dis = bt_dis_new(db); + bt_dis_set_notification(hog->dis, dis_notify, hog); } } -- 2.47.3