Skip to content

Commit 344a0cc

Browse files
committed
fix: Fix requires by IDF6
1 parent dfeaa71 commit 344a0cc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2422
if(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

9899
endif()
@@ -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
)

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ repository: https://github.com/espressif/esp32-camera.git
66
dependencies:
77
idf: ">=5.1"
88
esp_jpeg:
9-
version: "^1.3.0"
9+
version: "^1.3.1"
1010
public: true

0 commit comments

Comments
 (0)