mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-27 06:04:32 +08:00
hog-lib: Fix passing wrong parameters to bt_uhid_get_report_reply
The parameters of bt_uhid_get_report_reply are number followed by status, not status followed by number, so the order needs to be swapped. Fixes: https://github.com/bluez/bluez/issues/880
This commit is contained in:
parent
2bd25c068c
commit
5ebaeab416
@ -904,7 +904,7 @@ static void report_reply(struct bt_hog *hog, uint8_t status, uint8_t id,
|
||||
|
||||
hog->getrep_att = 0;
|
||||
|
||||
err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, status, id,
|
||||
err = bt_uhid_get_report_reply(hog->uhid, hog->getrep_id, id, status,
|
||||
data, len);
|
||||
if (err < 0)
|
||||
error("bt_uhid_get_report_reply: %s", strerror(-err));
|
||||
|
Loading…
Reference in New Issue
Block a user