Skip to content

Commit 63e9a51

Browse files
committed
Merge branch 'bugfix/knob_idf6_requires' into 'master'
fix(knob): Fix requires by IDF6 See merge request ae_group/esp-iot-solution!1393
2 parents e016f9d + 1d939a8 commit 63e9a51

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

components/knob/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog
22

3+
## v1.0.1 - 2025-10-10
4+
5+
* Fixed requires in CMake for IDF6.
6+
37
## v1.0.0 - 2024-9-26
48

59
* Add ext1_wakeup mode for Knob when define CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y

components/knob/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_gpio)
3+
else()
4+
set(REQ driver)
5+
endif()
6+
17
idf_component_register(SRCS "iot_knob.c" "knob_gpio.c"
28
INCLUDE_DIRS "include"
3-
REQUIRES driver
9+
REQUIRES ${REQ}
410
PRIV_REQUIRES esp_timer)
511

612
include(package_manager)

components/knob/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.0.0"
1+
version: "1.0.1"
22
description: Knob driver implemented through software pcnt
33
url: https://github.com/espressif/esp-iot-solution/tree/master/components/knob
44
documentation: https://docs.espressif.com/projects/esp-iot-solution/en/latest/input_device/knob.html

0 commit comments

Comments
 (0)