From 09cdef0b46fd51b28125879693c656c96478cbc9 Mon Sep 17 00:00:00 2001 From: tommaso-merlini Date: Wed, 5 Nov 2025 10:47:07 +0100 Subject: [PATCH 1/2] fix(mpu6050): add missing esp_driver_gpio to REQUIRES --- components/mpu6050/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mpu6050/CMakeLists.txt b/components/mpu6050/CMakeLists.txt index 8ed961793..1b850cc04 100644 --- a/components/mpu6050/CMakeLists.txt +++ b/components/mpu6050/CMakeLists.txt @@ -1,5 +1,5 @@ idf_component_register( SRCS "mpu6050.c" INCLUDE_DIRS "include" - REQUIRES "driver" + REQUIRES "driver" "esp_driver_gpio" ) From 77c58aad006ca2cc9af0cde78fd0c5aaeb2907cb Mon Sep 17 00:00:00 2001 From: tommaso-merlini Date: Wed, 5 Nov 2025 10:54:18 +0100 Subject: [PATCH 2/2] fix(mpu6050): set requires with SET(REQ...) --- components/mpu6050/CMakeLists.txt | 6 +++++- components/mpu6050/idf_component.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/mpu6050/CMakeLists.txt b/components/mpu6050/CMakeLists.txt index 1b850cc04..21aec67b7 100644 --- a/components/mpu6050/CMakeLists.txt +++ b/components/mpu6050/CMakeLists.txt @@ -1,5 +1,9 @@ +if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3") + set(REQ esp_driver_gpio esp_driver_i2c) +endif() + idf_component_register( SRCS "mpu6050.c" INCLUDE_DIRS "include" - REQUIRES "driver" "esp_driver_gpio" + REQUIRES driver ${REQ} ) diff --git a/components/mpu6050/idf_component.yml b/components/mpu6050/idf_component.yml index 4d544f0d8..14bcd2066 100644 --- a/components/mpu6050/idf_component.yml +++ b/components/mpu6050/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.2.0" +version: "1.2.1" description: I2C driver for MPU6050 6-axis gyroscope and accelerometer url: https://github.com/espressif/esp-bsp/tree/master/components/mpu6050 dependencies: