mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
rcS: try to load params from secondary storage if available
This commit is contained in:
@@ -166,8 +166,17 @@ else
|
|||||||
#
|
#
|
||||||
# Load parameters.
|
# Load parameters.
|
||||||
#
|
#
|
||||||
|
# if MTD has a secondary storage it is used for (factory) calibration data
|
||||||
|
if mtd has-secondary
|
||||||
|
then
|
||||||
|
if mtd start -i 1 /fs/mtd_caldata
|
||||||
|
then
|
||||||
|
param load /fs/mtd_caldata
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
param select $PARAM_FILE
|
param select $PARAM_FILE
|
||||||
if ! param load
|
if ! param import
|
||||||
then
|
then
|
||||||
param reset_all
|
param reset_all
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user