From d9d6144e6fd7e81c5cf97edb194d86de1780b952 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 17 Jun 2024 14:09:40 +0200 Subject: [PATCH] hid_host: return complete HID report --- CHANGELOG.md | 3 ++- src/classic/hid_host.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b8d4d56a..c216a8ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added ### Fixed -RFCOMM: shut down multiplexer after closing last channel instead of multiplexer idle timer +- RFCOMM: shut down multiplexer after closing last channel instead of multiplexer idle timer +- HID Host: return complete HID report ### Changed diff --git a/src/classic/hid_host.c b/src/classic/hid_host.c index 271920863..cc833701d 100644 --- a/src/classic/hid_host.c +++ b/src/classic/hid_host.c @@ -875,7 +875,7 @@ static void hid_host_packet_handler(uint8_t packet_type, uint16_t channel, uint8 if (channel == connection->interrupt_cid){ uint8_t * in_place_event = packet - 7; - hid_setup_report_event(connection, in_place_event, size-1); + hid_setup_report_event(connection, in_place_event, size); hid_host_callback(HCI_EVENT_PACKET, connection->hid_cid, in_place_event, size + 7); break; }