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; }