mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
fix(bt): Fixed the issue with l2cap not using dynamic memory
This commit is contained in:
@ -80,7 +80,12 @@ typedef struct {
|
||||
esp_vfs_id_t l2cap_vfs_id;
|
||||
} l2cap_local_param_t;
|
||||
|
||||
#if L2CAP_DYNAMIC_MEMORY == FALSE
|
||||
static l2cap_local_param_t l2cap_local_param;
|
||||
#else
|
||||
static l2cap_local_param_t *l2cap_local_param_ptr;
|
||||
#define l2cap_local_param (*l2cap_local_param_ptr)
|
||||
#endif
|
||||
|
||||
/* L2CAP default options for OBEX connections */
|
||||
static const tL2CAP_FCR_OPTS obex_l2c_fcr_opts_def =
|
||||
|
@ -56,6 +56,7 @@
|
||||
#define LLCP_DYNAMIC_MEMORY TRUE
|
||||
#define BTC_SBC_DEC_DYNAMIC_MEMORY TRUE
|
||||
#define BTC_GAP_BT_DYNAMIC_MEMORY TRUE
|
||||
#define L2CAP_DYNAMIC_MEMORY TRUE
|
||||
|
||||
#else /* #if UC_BT_BLE_DYNAMIC_ENV_MEMORY */
|
||||
#define BTU_DYNAMIC_MEMORY FALSE
|
||||
@ -93,6 +94,7 @@
|
||||
#define LLCP_DYNAMIC_MEMORY FALSE
|
||||
#define BTC_SBC_DEC_DYNAMIC_MEMORY FALSE
|
||||
#define BTC_GAP_BT_DYNAMIC_MEMORY FALSE
|
||||
#define L2CAP_DYNAMIC_MEMORY FALSE
|
||||
|
||||
#endif /* #if UC_BT_BLE_DYNAMIC_ENV_MEMORY */
|
||||
|
||||
|
Reference in New Issue
Block a user