File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ set(include_dirs
1818 conversions/include
1919 )
2020
21- set (COMPONENT_REQUIRES driver)
22-
2321# set driver sources only for supported platforms
2422if (IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET STREQUAL "esp32s3" )
2523 list (APPEND srcs
@@ -91,8 +89,11 @@ if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s2" OR IDF_TARGET ST
9189 list (APPEND srcs driver/sccb.c)
9290 endif ()
9391
92+ set (req "" )
9493 if (idf_version VERSION_GREATER_EQUAL "6.0" )
95- list (APPEND priv_requires esp_driver_gpio)
94+ list (APPEND priv_requires esp_driver_gpio esp_driver_ledc esp_driver_spi esp_driver_i2c)
95+ else ()
96+ list (APPEND req driver)
9697 endif ()
9798
9899endif ()
@@ -101,6 +102,6 @@ idf_component_register(
101102 SRCS ${srcs}
102103 INCLUDE_DIRS ${include_dirs}
103104 PRIV_INCLUDE_DIRS ${priv_include_dirs}
104- REQUIRES driver # due to include of driver/gpio.h in esp_camera.h
105+ REQUIRES ${req}
105106 PRIV_REQUIRES ${priv_requires}
106107)
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