svn commit: r324770 - head/usr.sbin/bluetooth/bthidd
Vladimir Kondratyev
wulf at FreeBSD.org
Thu Oct 19 20:42:47 UTC 2017
Author: wulf
Date: Thu Oct 19 20:42:46 2017
New Revision: 324770
URL: https://svnweb.freebsd.org/changeset/base/324770
Log:
bthidd: Fix leds on multireport keyboards broken after r297217
Reviewed by: emax, gonzo
Approved by: gonzo (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D12214
Modified:
head/usr.sbin/bluetooth/bthidd/kbd.c
Modified: head/usr.sbin/bluetooth/bthidd/kbd.c
==============================================================================
--- head/usr.sbin/bluetooth/bthidd/kbd.c Thu Oct 19 20:28:04 2017 (r324769)
+++ head/usr.sbin/bluetooth/bthidd/kbd.c Thu Oct 19 20:42:46 2017 (r324770)
@@ -569,6 +569,11 @@ kbd_status_changed(bthid_session_p s, uint8_t *data, i
}
hid_end_parse(d);
+ if (report_id != NO_REPORT_ID) {
+ data[2] = data[1];
+ data[1] = report_id;
+ }
+
if (found)
write(s->intr, data, (report_id != NO_REPORT_ID) ? 3 : 2);
More information about the svn-src-all
mailing list