driver/sensors/: BMI270 fix compilation if sensor works in SPI mode

This commit is contained in:
raiden00pl 2023-06-02 09:57:52 +02:00 committed by Xiang Xiao
parent 4645004d49
commit e83fd87f9c

View File

@ -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)