Skip to content

Commit 77c58aa

Browse files
fix(mpu6050): set requires with SET(REQ...)
1 parent 09cdef0 commit 77c58aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/mpu6050/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_gpio esp_driver_i2c)
3+
endif()
4+
15
idf_component_register(
26
SRCS "mpu6050.c"
37
INCLUDE_DIRS "include"
4-
REQUIRES "driver" "esp_driver_gpio"
8+
REQUIRES driver ${REQ}
59
)

components/mpu6050/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "1.2.0"
1+
version: "1.2.1"
22
description: I2C driver for MPU6050 6-axis gyroscope and accelerometer
33
url: https://github.com/espressif/esp-bsp/tree/master/components/mpu6050
44
dependencies:

0 commit comments

Comments
 (0)