mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 05:53:34 +08:00
rcS:Use mft query not mtd start
This commit is contained in:
committed by
Daniel Agar
parent
22bc176885
commit
b4693f41da
@@ -153,9 +153,10 @@ then
|
||||
else
|
||||
|
||||
#
|
||||
# Set the parameter file if mtd starts successfully.
|
||||
# Set the parameter file the board supports params on
|
||||
# MTD device.
|
||||
#
|
||||
if mtd start
|
||||
if mft query -q -k MTD -s MTD_PARAMETERS -v /fs/mtd_params
|
||||
then
|
||||
set PARAM_FILE /fs/mtd_params
|
||||
fi
|
||||
@@ -163,13 +164,10 @@ else
|
||||
#
|
||||
# Load parameters.
|
||||
#
|
||||
# if MTD has a secondary storage it is used for (factory) calibration data
|
||||
if mtd has-secondary
|
||||
# if the board has a storage for (factory) calibration data
|
||||
if mft query -q -k MTD -s MTD_CALDATA -v /fs/mtd_caldata
|
||||
then
|
||||
if mtd start -i 1 /fs/mtd_caldata
|
||||
then
|
||||
param load /fs/mtd_caldata
|
||||
fi
|
||||
param load /fs/mtd_caldata
|
||||
fi
|
||||
|
||||
param select $PARAM_FILE
|
||||
|
||||
Reference in New Issue
Block a user