Skip to content

Commit 49333d0

Browse files
authored
Fix compilation errors with bridge app (project-chip#24303)
1 parent 2ba9901 commit 49333d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/platform/esp32/common/CommonDeviceCallbacks.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
#include "CommonDeviceCallbacks.h"
1919

20+
#if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
2021
#if CONFIG_BT_ENABLED
2122
#include "esp_bt.h"
2223
#if CONFIG_BT_NIMBLE_ENABLED
@@ -26,6 +27,7 @@
2627
#include "nimble/nimble_port.h"
2728
#endif // CONFIG_BT_NIMBLE_ENABLED
2829
#endif // CONFIG_BT_ENABLED
30+
#endif // CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE
2931

3032
#include "esp_err.h"
3133
#include "esp_heap_caps.h"
@@ -78,7 +80,7 @@ void CommonDeviceCallbacks::DeviceEventCallback(const ChipDeviceEvent * event, i
7880

7981
case DeviceEventType::kCommissioningComplete: {
8082
ESP_LOGI(TAG, "Commissioning complete");
81-
#if CONFIG_BT_NIMBLE_ENABLED && CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING
83+
#if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE && CONFIG_BT_NIMBLE_ENABLED && CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING
8284

8385
if (ble_hs_is_enabled())
8486
{

0 commit comments

Comments
 (0)