File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,17 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST
9191 list (APPEND srcs driver/sccb.c)
9292 endif ()
9393
94+ if (idf_version VERSION_GREATER_EQUAL "6.0" )
95+ list (APPEND priv_requires esp_driver_gpio esp_driver_ledc esp_driver_spi esp_driver_i2c)
96+ else ()
97+ list (APPEND priv_requires driver)
98+ endif ()
99+
94100endif ()
95101
96102idf_component_register(
97103 SRCS ${srcs}
98104 INCLUDE_DIRS ${include_dirs}
99105 PRIV_INCLUDE_DIRS ${priv_include_dirs}
100- REQUIRES driver # due to include of driver/gpio.h in esp_camera.h
101106 PRIV_REQUIRES ${priv_requires}
102107)
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ documentation: https://github.com/espressif/esp32-camera/tree/main/README.md
55repository : https://github.com/espressif/esp32-camera.git
66dependencies :
77 esp_jpeg :
8- version : " ^1.3.0 "
8+ version : " ^1.3.1 "
99 public : true
You can’t perform that action at this time.
0 commit comments