driver/sensors/: BMI270 fix compilation if sensor works in SPI mode
This commit is contained in:
parent
4645004d49
commit
e83fd87f9c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user