Skip to content

Commit b1f26d6

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

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

components/mpu6050/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_gpio esp_driver_i2c)
3+
else()
4+
set(REQ driver)
5+
endif()
6+
7+
18
idf_component_register(
29
SRCS "mpu6050.c"
310
INCLUDE_DIRS "include"
4-
REQUIRES "driver" "esp_driver_gpio"
11+
REQUIRES ${REQ}
512
)

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)