File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -91,8 +91,11 @@ 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)
94+ set (requires "" )
95+ if (idf_version VERSION_GREATER_EQUAL "5.3" )
96+ list (APPEND priv_requires esp_driver_gpio esp_driver_ledc esp_driver_spi esp_driver_i2c)
97+ else ()
98+ list (APPEND requires driver)
9699 endif ()
97100
98101endif ()
@@ -101,6 +104,6 @@ idf_component_register(
101104 SRCS ${srcs}
102105 INCLUDE_DIRS ${include_dirs}
103106 PRIV_INCLUDE_DIRS ${priv_include_dirs}
104- REQUIRES driver # due to include of driver/gpio.h in esp_camera.h
107+ REQUIRES ${requires}
105108 PRIV_REQUIRES ${priv_requires}
106109)
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ repository: https://github.com/espressif/esp32-camera.git
66dependencies :
77 idf : " >=5.1"
88 esp_jpeg :
9- version : " ^1.3.0 "
9+ version : " ^1.3.1 "
1010 public : true
You can’t perform that action at this time.
0 commit comments