Skip to content

Commit 6143a83

Browse files
committed
fix: Fix requires by IDF6
1 parent 2368d94 commit 6143a83

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
94100
endif()
95101

96102
idf_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
)

idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ documentation: https://github.com/espressif/esp32-camera/tree/main/README.md
55
repository: https://github.com/espressif/esp32-camera.git
66
dependencies:
77
esp_jpeg:
8-
version: "^1.3.0"
8+
version: "^1.3.1"
99
public: true

0 commit comments

Comments
 (0)