Date: Thu, 19 Oct 2017 20:42:46 +0000 (UTC) From: Vladimir Kondratyev <wulf@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324770 - head/usr.sbin/bluetooth/bthidd Message-ID: <201710192042.v9JKgkej046429@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710192042.v9JKgkej046429>