From f4ffc6692734ddf52af43571d1c50708b6e404dc Mon Sep 17 00:00:00 2001 From: "C.S.M" Date: Tue, 15 Jul 2025 10:49:23 +0800 Subject: [PATCH] fix(i2c): Fxi the i2c sleep retention build failed on esp32h4 --- .../esp_driver_i2c/test_apps/i2c_test_apps/main/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_driver_i2c/test_apps/i2c_test_apps/main/CMakeLists.txt b/components/esp_driver_i2c/test_apps/i2c_test_apps/main/CMakeLists.txt index 9a5253696b..2ccd3f253e 100644 --- a/components/esp_driver_i2c/test_apps/i2c_test_apps/main/CMakeLists.txt +++ b/components/esp_driver_i2c/test_apps/i2c_test_apps/main/CMakeLists.txt @@ -17,7 +17,7 @@ if(CONFIG_SOC_I2C_SUPPORT_SLAVE AND CONFIG_SOC_I2C_SLAVE_CAN_GET_STRETCH_CAUSE) list(APPEND srcs "test_lp_i2c.c") endif() - if(CONFIG_SOC_I2C_SUPPORT_SLEEP_RETENTION) + if(CONFIG_SOC_I2C_SUPPORT_SLEEP_RETENTION AND CONFIG_SOC_LIGHT_SLEEP_SUPPORTED) list(APPEND srcs "test_i2c_sleep_retention.c") endif()