Skip to content

Commit 3c26b02

Browse files
committed
fix: prefer esp_driver_gpio over driver
1 parent 07bc94c commit 3c26b02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
if(${IDF_TARGET} STREQUAL esp8266)
22
set(req esp8266 freertos log esp_idf_lib_helpers)
3-
else()
3+
elseif(${IDF_VERSION_MAJOR} STREQUAL 5 AND ${IDF_VERSION_MINOR} LESS 3)
44
set(req driver freertos log esp_idf_lib_helpers)
5+
else()
6+
set(req esp_driver_gpio freertos log esp_idf_lib_helpers)
57
endif()
68

79
idf_component_register(

0 commit comments

Comments
 (0)