mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
fix on esp_hidh report map length checking function
Closes https://github.com/espressif/esp-idf/issues/7586
This commit is contained in:
parent
2e06f1fee5
commit
b7a99614a1
@ -639,7 +639,7 @@ esp_hidh_dev_report_t *esp_hidh_dev_get_input_report_by_proto_and_data(esp_hidh_
|
||||
}
|
||||
r = dev->reports;
|
||||
while (r) {
|
||||
if (r->value_len == len + 1 && r->report_id == *data && (r->report_type & 1) &&
|
||||
if (r->value_len == len - 1 && r->report_id == *data && (r->report_type & 1) &&
|
||||
r->protocol_mode == protocol_mode) {
|
||||
*has_report_id = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user