Browse Source

rc.sensors: fix BOARD_FMUV3, it was unset too early

It's used further down again.
sbg
Beat Küng 7 years ago committed by Lorenz Meier
parent
commit
8ef4f12b61
  1. 10
      ROMFS/px4fmu_common/init.d/rc.sensors

10
ROMFS/px4fmu_common/init.d/rc.sensors

@ -121,11 +121,11 @@ then @@ -121,11 +121,11 @@ then
fxas21002c start -R 0
fi
# V2 build hwtypecmp is always false
set BOARD_FMUV3 0
if ver hwcmp PX4FMU_V2
then
# V2 build hwtypecmp is always false
set BOARD_FMUV3 0
# External I2C bus
hmc5883 -C -T -X start
lis3mdl -X start
@ -218,8 +218,6 @@ then @@ -218,8 +218,6 @@ then
l3gd20 start
lsm303d start
fi
unset BOARD_FMUV3
fi
if ver hwcmp PX4_SAME70XPLAINED_V1
@ -478,6 +476,8 @@ fi @@ -478,6 +476,8 @@ fi
# End Optional drivers #
###############################################################################
unset BOARD_FMUV3
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
usleep 20000
sensors start

Loading…
Cancel
Save