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:
Luiz Augusto von Dentz 2024-06-24 16:10:15 -04:00
parent 2bd25c068c
commit 5ebaeab416

View File

@ -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));