Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/mpu6050/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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"
REQUIRES driver ${REQ}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
REQUIRES driver ${REQ}
REQUIRES ${REQ}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just added the driver in the requires and set the conditional requires, thank you for you patience.

Copy link
Collaborator

@espzav espzav Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tommaso-merlini Still missing else in condition and removed driver in REQUIRES. For IDF 6 cannot be driver there. It is divided into esp_driver_gpio esp_driver_i2c

)
2 changes: 1 addition & 1 deletion components/mpu6050/idf_component.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down