From bc47f296a69f8baae6c90e6c54729318f6dd2067 Mon Sep 17 00:00:00 2001 From: shripad621git Date: Mon, 30 Dec 2024 15:41:16 +0530 Subject: [PATCH] [ESP32]: Fixed the undef build failure on disabling CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS --- src/platform/ESP32/CHIPDevicePlatformConfig.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/platform/ESP32/CHIPDevicePlatformConfig.h b/src/platform/ESP32/CHIPDevicePlatformConfig.h index 62665f2022227b..6c3395e68672e4 100644 --- a/src/platform/ESP32/CHIPDevicePlatformConfig.h +++ b/src/platform/ESP32/CHIPDevicePlatformConfig.h @@ -121,7 +121,13 @@ #define CHIP_DEVICE_CONFIG_BLE_SLOW_ADVERTISING_INTERVAL_MAX CONFIG_BLE_SLOW_ADVERTISING_INTERVAL_MAX #define CHIP_DEVICE_CONFIG_CHIPOBLE_SINGLE_CONNECTION CONFIG_CHIPOBLE_SINGLE_CONNECTION #define CHIP_DEVICE_CONFIG_CHIPOBLE_ENABLE_ADVERTISING_AUTOSTART CONFIG_CHIPOBLE_ENABLE_ADVERTISING_AUTOSTART -#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS CONFIG_ENABLE_TEST_SETUP_PARAMS + +#ifdef CONFIG_ENABLE_TEST_SETUP_PARAMS +#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 1 +#else +#define CHIP_DEVICE_CONFIG_ENABLE_TEST_SETUP_PARAMS 0 +#endif // CONFIG_ENABLE_TEST_SETUP_PARAMS + #define CHIP_DEVICE_CONFIG_TEST_SERIAL_NUMBER CONFIG_USE_TEST_SERIAL_NUMBER #ifdef CONFIG_ENABLE_THREAD_TELEMETRY