From 5e1490b8a151e14a55ccfdf87c482e0066cf34a9 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Fri, 2 Jun 2017 18:30:51 +0200 Subject: [PATCH] BMI055: Ensure that accel and gyro start consistently. This was required on a BOSCH board which otherwise could end up mis-detecting the 055 and not running properly --- ROMFS/px4fmu_common/init.d/rc.sensors | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 3d9d21cd05..2ba69ed463 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -224,11 +224,10 @@ then # Internal SPI bus BMI055_ACC if bmi055 -A start then - fi - - # Internal SPI bus BMI055_GYR - if bmi055 -G start - then + # Internal SPI bus BMI055_GYR + if bmi055 -G start + then + fi fi # expansion i2c used for BMM150 rotated by 90deg