Skip to content

Commit

Permalink
[DeviceDrivers] Update SConcript file for sensor code
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardXiong committed Feb 1, 2015
1 parent 87cc28f commit 3462537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/drivers/sensors/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3462537

Please sign in to comment.