kopia lustrzana https://github.com/espressif/esp-idf
component/bt: Fix the bug cann't use esp_ble_gatts_get_attr_value to get the attribute value after long write.
rodzic
d34c59558e
commit
7617a3c434
|
@ -422,6 +422,8 @@ void gatt_process_exec_write_req (tGATT_TCB *p_tcb, UINT8 op_code, UINT16 len, U
|
|||
if((queue_data->p_attr->p_value != NULL) && (queue_data->p_attr->p_value->attr_val.attr_val != NULL)){
|
||||
memcpy(queue_data->p_attr->p_value->attr_val.attr_val+queue_data->offset, queue_data->value, queue_data->len);
|
||||
}
|
||||
//don't forget to increase the attribute value length in the gatts database.
|
||||
queue_data->p_attr->p_value->attr_val.attr_len += queue_data->len;
|
||||
}
|
||||
osi_free(queue_data);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue