From 81c0ccfade94a1137ba4573342aa52c1e876b05d Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 5 Aug 2024 11:18:36 +0800 Subject: [PATCH] fix(efuse): fix efuse examples not compiling on c2 --- examples/system/efuse/main/efuse_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/system/efuse/main/efuse_main.c b/examples/system/efuse/main/efuse_main.c index 2b6238892f..9aa0bf232b 100644 --- a/examples/system/efuse/main/efuse_main.c +++ b/examples/system/efuse/main/efuse_main.c @@ -15,8 +15,14 @@ #include "esp_efuse.h" #include "esp_efuse_table.h" #include "esp_efuse_custom_table.h" + +#if CONFIG_SECURE_BOOT || CONFIG_IDF_TARGET_ESP32C2 #include "esp_secure_boot.h" +#endif + +#if CONFIG_SECURE_FLASH_ENC_ENABLED || CONFIG_IDF_TARGET_ESP32C2 #include "esp_flash_encrypt.h" +#endif #include "sdkconfig.h" static const char* TAG = "example";