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
This commit is contained in:
parent
87165bf858
commit
12df521311
@ -569,6 +569,11 @@ kbd_status_changed(bthid_session_p s, uint8_t *data, int32_t len)
|
||||
}
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user