mirror of
https://github.com/apache/nuttx.git
synced 2026-05-18 08:54:05 +08:00
driver/sensors/: BMI270 fix compilation if sensor works in SPI mode
This commit is contained in:
@@ -56,6 +56,10 @@ ifeq ($(CONFIG_SENSORS_DHTXX),y)
|
||||
CSRCS += dhtxx.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMI270),y)
|
||||
CSRCS += bmi270.c
|
||||
endif
|
||||
|
||||
# These drivers depend on I2C support
|
||||
|
||||
ifeq ($(CONFIG_I2C),y)
|
||||
@@ -145,10 +149,6 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMI270),y)
|
||||
CSRCS += bmi270.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SENSORS_BMP180),y)
|
||||
CSRCS += bmp180_base.c
|
||||
ifeq ($(CONFIG_SENSORS_BMP180_UORB),y)
|
||||
|
||||
Reference in New Issue
Block a user