From bb07639d413b01d93fecdc2b8dbe38d01ab2354a Mon Sep 17 00:00:00 2001 From: Roshan Bangar Date: Tue, 13 Feb 2024 15:09:22 +0530 Subject: [PATCH] nimble/porting: Added missing #if guard --- porting/nimble/src/nimble_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porting/nimble/src/nimble_port.c b/porting/nimble/src/nimble_port.c index 53b72c457..83b2c8457 100644 --- a/porting/nimble/src/nimble_port.c +++ b/porting/nimble/src/nimble_port.c @@ -134,7 +134,7 @@ esp_err_t esp_nimble_init(void) */ esp_err_t esp_nimble_deinit(void) { -#if !SOC_ESP_NIMBLE_CONTROLLER +#if !SOC_ESP_NIMBLE_CONTROLLER || !CONFIG_BT_CONTROLLER_ENABLED #if CONFIG_BT_CONTROLLER_ENABLED if(esp_nimble_hci_deinit() != ESP_OK) { ESP_LOGE(NIMBLE_PORT_LOG_TAG, "hci deinit failed\n");