kopia lustrzana https://github.com/espressif/esp-idf
fix on esp_hidh report map length checking function
Closes https://github.com/espressif/esp-idf/issues/7586pull/8353/head
rodzic
214d62b9ad
commit
629bd67001
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue