From 3462537bddaefc16959a7fe3a2224b9648e23ae6 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 1 Feb 2015 08:50:54 +0000 Subject: [PATCH] [DeviceDrivers] Update SConcript file for sensor code --- components/drivers/sensors/SConscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/drivers/sensors/SConscript b/components/drivers/sensors/SConscript index 79f5c0617..db409cfd2 100644 --- a/components/drivers/sensors/SConscript +++ b/components/drivers/sensors/SConscript @@ -6,10 +6,10 @@ cwd = GetCurrentDir() src = ['sensor.cpp'] CPPPATH = [cwd, cwd + '/../include'] -if GetDepend('SENSOR_USING_MPU6050'): +if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'): src += ['mpu6050_sensor.cpp']; -if GetDepend('SENSOR_USING_BMI055'): +if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'): src += ['bmi055_sensor.cpp'] group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH) -- GitLab