From 1fc1269aee8c3e7ddd31510547fe097ffbd56318 Mon Sep 17 00:00:00 2001 From: Hrishikesh Dhayagude Date: Fri, 27 Jan 2023 10:40:44 +0530 Subject: [PATCH] Fix compilation when Bluetooth is disabled --- components/esp_matter/esp_matter_core.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/esp_matter/esp_matter_core.cpp b/components/esp_matter/esp_matter_core.cpp index c790ed97a..d8cb8d771 100644 --- a/components/esp_matter/esp_matter_core.cpp +++ b/components/esp_matter/esp_matter_core.cpp @@ -16,6 +16,7 @@ #include #include #include +#if CONFIG_BT_ENABLED #include #if CONFIG_BT_NIMBLE_ENABLED #if ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) @@ -24,6 +25,7 @@ #include #include #endif /* CONFIG_BT_NIMBLE_ENABLED */ +#endif /* CONFIG_BT_ENABLED */ #include #include @@ -824,6 +826,7 @@ static void device_callback_internal(const ChipDeviceEvent * event, intptr_t arg break; #endif +#if CONFIG_BT_ENABLED #if CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING case chip::DeviceLayer::DeviceEventType::kCommissioningComplete: { @@ -853,7 +856,7 @@ static void device_callback_internal(const ChipDeviceEvent * event, intptr_t arg break; } #endif /* CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING */ - +#endif /* CONFIG_BT_ENABLED */ default: break; }