kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/btdm_debug_gatt_attr_table' into 'master'
component/bt: Fix Gatt table read_req bug and advertising channel 39 not available bug 1. Fix Gatt table read request bug 2. Fix advertising channel 39 not available bug See merge request !463pull/302/head
commit
8e467801bc
|
@ -95,7 +95,7 @@ typedef enum {
|
|||
typedef enum {
|
||||
ADV_CHNL_37 = 0x01,
|
||||
ADV_CHNL_38 = 0x02,
|
||||
ADV_CHNL_39 = 0x03,
|
||||
ADV_CHNL_39 = 0x04,
|
||||
ADV_CHNL_ALL = 0x07,
|
||||
} esp_ble_adv_channel_t;
|
||||
|
||||
|
|
|
@ -1332,7 +1332,13 @@ static tGATT_STATUS gatts_send_app_read_request(tGATT_TCB *p_tcb, UINT8 op_code,
|
|||
|
||||
gatt_sr_send_req_callback(conn_id,
|
||||
trans_id, GATTS_REQ_TYPE_READ, &sr_data);
|
||||
return (tGATT_STATUS) GATT_PENDING;
|
||||
|
||||
if (need_rsp) {
|
||||
return (tGATT_STATUS) GATT_PENDING;
|
||||
}
|
||||
else{
|
||||
return (tGATT_STATUS) GATT_STACK_RSP;
|
||||
}
|
||||
} else {
|
||||
return (tGATT_STATUS) GATT_BUSY; /* max pending command, application error */
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue