mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-20 08:39:05 +00:00
fix esp hid crash when auth failed
This commit is contained in:
@@ -104,6 +104,8 @@ static void read_device_services(esp_gatt_if_t gattc_if, esp_hidh_dev_t *dev)
|
||||
ESP_LOGE(TAG, "malloc report maps failed");
|
||||
return;
|
||||
}
|
||||
/* read characteristic value may failed, so we should init report maps */
|
||||
memset(dev->config.report_maps, 0, dev->config.report_maps_len * sizeof(esp_hid_raw_report_map_t));
|
||||
|
||||
for (uint16_t s = 0; s < dcount; s++) {
|
||||
suuid = service_result[s].uuid.uuid.uuid16;
|
||||
|
Reference in New Issue
Block a user