diff options
| author | Bernard Xiong <[email protected]> | 2015-02-01 08:50:54 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-02-01 08:50:54 +0000 |
| commit | 3462537bddaefc16959a7fe3a2224b9648e23ae6 (patch) | |
| tree | 2cb8718593fb9e5a598637848ecfc89c628c97c0 | |
| parent | 87cc28fb8c64848d709cade3601773029fe06eec (diff) | |
[DeviceDrivers] Update SConcript file for sensor code
| -rw-r--r-- | components/drivers/sensors/SConscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sensors/SConscript b/components/drivers/sensors/SConscript index 79f5c06177..db409cfd2b 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) |
