fix(i2c): Fxi the i2c sleep retention build failed on esp32h4

This commit is contained in:
C.S.M
2025-07-15 10:49:23 +08:00
parent 4e7bfc3217
commit f4ffc66927

View File

@@ -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()