Skip to content

Commit 3462537

Browse files
committed
[DeviceDrivers] Update SConcript file for sensor code
1 parent 87cc28f commit 3462537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/sensors/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ cwd = GetCurrentDir()
66
src = ['sensor.cpp']
77
CPPPATH = [cwd, cwd + '/../include']
88

9-
if GetDepend('SENSOR_USING_MPU6050'):
9+
if GetDepend('SENSOR_USING_MPU6050') and GetDepend('RT_USING_I2C'):
1010
src += ['mpu6050_sensor.cpp'];
1111

12-
if GetDepend('SENSOR_USING_BMI055'):
12+
if GetDepend('SENSOR_USING_BMI055') and GetDepend('RT_USING_I2C'):
1313
src += ['bmi055_sensor.cpp']
1414

1515
group = DefineGroup('Sensors', src, depend = ['RT_USING_SENSOR', 'RT_USING_DEVICE'], CPPPATH = CPPPATH)

0 commit comments

Comments
 (0)