This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e83fd87f9ce874e4ed072363fc1348892d0f2abf Author: raiden00pl <[email protected]> AuthorDate: Fri Jun 2 09:57:52 2023 +0200 driver/sensors/: BMI270 fix compilation if sensor works in SPI mode --- drivers/sensors/Make.defs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sensors/Make.defs b/drivers/sensors/Make.defs index cee3cdf15f..d17b951a94 100644 --- a/drivers/sensors/Make.defs +++ b/drivers/sensors/Make.defs @@ -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)
