From 4d277e758ed4276d13f882cbc3c49b1bf23c57e4 Mon Sep 17 00:00:00 2001 From: Alexey Zholtikov Date: Sun, 5 Apr 2026 11:00:56 +0300 Subject: [PATCH] feat: added esp-idf v6.0.0 support --- CMakeLists.txt | 7 ++++++- README.md | 2 +- version.txt | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc6ccd7..3380c78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1 +1,6 @@ -idf_component_register(SRCS "zh_aht.c" INCLUDE_DIRS "include" REQUIRES driver) \ No newline at end of file +if(${IDF_VERSION_MAJOR} STREQUAL 6) + set(requires esp_driver_i2c) +else() + set(requires driver) +endif() +idf_component_register(SRCS "zh_aht.c" INCLUDE_DIRS "include" REQUIRES ${requires}) \ No newline at end of file diff --git a/README.md b/README.md index f710c5b..76aed7c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Tested on -1. ESP32 ESP-IDF v5.2 +1. [ESP32 ESP-IDF v6.0.0](https://docs.espressif.com/projects/esp-idf/en/v6.0/esp32/index.html) ## SAST Tools diff --git a/version.txt b/version.txt index a4f52a5..0fa4ae4 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.2.0 \ No newline at end of file +3.3.0 \ No newline at end of file