mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_write_API_to_write_char_get_wrong_status_when_server_response_NULL' into 'master'
component /bt: write_API_to_write_char_get_wrong_status_when_server_response_NULL See merge request !842
This commit is contained in:
commit
57d27faee8
@ -554,6 +554,9 @@ void gatt_process_error_rsp(tGATT_TCB *p_tcb, tGATT_CLCB *p_clcb, UINT8 op_code,
|
||||
(opcode == GATT_REQ_PREPARE_WRITE) &&
|
||||
(p_attr) &&
|
||||
(handle == p_attr->handle) ) {
|
||||
if (reason == GATT_SUCCESS){
|
||||
reason = GATT_ERROR;
|
||||
}
|
||||
p_clcb->status = reason;
|
||||
gatt_send_queue_write_cancel(p_tcb, p_clcb, GATT_PREP_WRITE_CANCEL);
|
||||
} else if ((p_clcb->operation == GATTC_OPTYPE_READ) &&
|
||||
|
@ -309,6 +309,9 @@ tGATT_STATUS gatt_sr_process_app_rsp (tGATT_TCB *p_tcb, tGATT_IF gatt_if,
|
||||
ret_code = attp_send_sr_msg (p_tcb, p_tcb->sr_cmd.p_rsp_msg);
|
||||
p_tcb->sr_cmd.p_rsp_msg = NULL;
|
||||
} else {
|
||||
if (p_tcb->sr_cmd.status == GATT_SUCCESS){
|
||||
status = GATT_UNKNOWN_ERROR;
|
||||
}
|
||||
ret_code = gatt_send_error_rsp (p_tcb, status, op_code, p_tcb->sr_cmd.handle, FALSE);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user