2021-08-17 21:27:41 +00:00
|
|
|
diff --git a/components/esp_hid/src/bt_hidh.c b/components/esp_hid/src/bt_hidh.c
|
2023-12-28 20:40:18 +00:00
|
|
|
index 6f0410e302..59dfc0b07f 100644
|
2021-08-17 21:27:41 +00:00
|
|
|
--- a/components/esp_hid/src/bt_hidh.c
|
|
|
|
+++ b/components/esp_hid/src/bt_hidh.c
|
2023-12-28 20:40:18 +00:00
|
|
|
@@ -673,7 +673,7 @@ static void esp_hh_cb(esp_hidh_cb_event_t event, esp_hidh_cb_param_t *param)
|
|
|
|
if (param->data_ind.len == 9 && *(param->data_ind.data) == 1) {
|
|
|
|
has_report_id = true;
|
|
|
|
_usage = ESP_HID_USAGE_KEYBOARD;
|
|
|
|
- } else if (param->data_ind.len == 4 && *(param->data_ind.data) == 2) {
|
|
|
|
+ } else if (param->data_ind.len >= 4 && *(param->data_ind.data) == 2) {
|
|
|
|
has_report_id = true;
|
|
|
|
_usage = ESP_HID_USAGE_MOUSE;
|
|
|
|
} else {
|