diff --git a/components/bt/bt.c b/components/bt/bt.c index 3f56be7b5d..fff11bce8e 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1022,10 +1022,6 @@ static void hli_queue_setup_pinned_to_core(int core_id) } } -uint32_t get_rmt_log_len(){ - return IRAM_LOG_BUFFER_SIZE; -} - esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg) { @@ -1146,7 +1142,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg) btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED; #ifdef CONFIG_ESP32_ENABLE_COREDUMP - esp_log_dump_init(get_rmt_log_len, btdm_rmt_get_fixed_log_addr); + esp_log_dump_init(btdm_rmt_get_log_buffer_size, btdm_rmt_get_fixed_log_addr); #else #warning "coredump function is not enabled" #endif diff --git a/components/bt/include/esp_bt.h b/components/bt/include/esp_bt.h index 797383aa75..57aec4df9b 100644 --- a/components/bt/include/esp_bt.h +++ b/components/bt/include/esp_bt.h @@ -462,8 +462,8 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void); void esp_bt_check_need_restart(); -#define IRAM_LOG_BUFFER_SIZE 8000 extern uint32_t* btdm_rmt_get_fixed_log_addr(); +uint32_t btdm_rmt_get_log_buffer_size(); int btdm_rmt_dbg_printf_to_iram(const char* format, ...); #define RMT_DBG_LOG_ERROR(format, ... ) btdm_rmt_dbg_printf_to_iram(DRAM_STR("E(%d):"format"\n"),esp_log_timestamp(), ##__VA_ARGS__); diff --git a/components/bt/lib b/components/bt/lib index 63222fa15e..3405ae5a67 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit 63222fa15e28a5d226c618c89c0f79a4c43496ec +Subproject commit 3405ae5a67e730d00fd1153d5fac706961fc149e