feat: added esp-idf v6.0.0 support

This commit is contained in:
aZholtikov committed 2026-03-28 08:18:00 +03:00
1 parent d20d338c81
commit 011c759809
3 files changed
+8 -3

No files matched your search

+6 -1
View File
@@ -1 +1,6 @@
idf_component_register(SRCS "zh_inclinometer.c" INCLUDE_DIRS "include" REQUIRES driver)
if(${IDF_VERSION_MAJOR} STREQUAL 6)
set(requires esp_driver_gpio esp_driver_pcnt)
else()
set(requires driver)
endif()
idf_component_register(SRCS "zh_inclinometer.c" INCLUDE_DIRS "include" REQUIRES ${requires})