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