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

It's used further down again.
This commit is contained in:
Beat Küng
2018-08-02 15:21:56 +02:00
committed by Lorenz Meier
parent bc9c25a376
commit 8ef4f12b61
+5 -5
View File
@@ -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
l3gd20 start
lsm303d start
fi
unset BOARD_FMUV3
fi
if ver hwcmp PX4_SAME70XPLAINED_V1
@@ -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