mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
fix(bt/bluedroid): Fixed failure to get host status when host is not enabled
(cherry picked from commit 23455ea9c2
)
Co-authored-by: chenjianhua <chenjianhua@espressif.com>
This commit is contained in:
@@ -122,6 +122,11 @@ uint32_t btc_get_ble_status(void)
|
||||
{
|
||||
uint32_t status = BTC_BLE_STATUS_IDLE;
|
||||
|
||||
if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) {
|
||||
BTC_TRACE_ERROR("%s Bluedroid not enabled", __func__);
|
||||
return status;
|
||||
}
|
||||
|
||||
#if (BLE_INCLUDED == TRUE)
|
||||
// Number of active advertising
|
||||
extern uint8_t btm_ble_adv_active_count(void);
|
||||
|
Reference in New Issue
Block a user