From 61400bc73b18e9ffcfd5b3806fee26d135c45fe7 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Mon, 15 Nov 2021 10:16:26 +0200 Subject: [PATCH] Fix "periph_module_enable" not found in ESP-IDF v5 (#333) Fixes: https://github.com/espressif/esp32-camera/issues/332 --- target/private_include/ll_cam.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/private_include/ll_cam.h b/target/private_include/ll_cam.h index 70f5007..7d30c37 100644 --- a/target/private_include/ll_cam.h +++ b/target/private_include/ll_cam.h @@ -35,6 +35,10 @@ #include "freertos/task.h" #include "freertos/semphr.h" +#if __has_include("esp_private/periph_ctrl.h") +# include "esp_private/periph_ctrl.h" +#endif + #define CAMERA_DBG_PIN_ENABLE 0 #if CAMERA_DBG_PIN_ENABLE #if CONFIG_IDF_TARGET_ESP32