rcS: try to load params from secondary storage if available

This commit is contained in:
Beat Küng
2020-09-04 15:24:44 +02:00
parent 3e9692c5bd
commit f1f6ca21cb
+10 -1
View File
@@ -166,8 +166,17 @@ else
#
# 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
if ! param load
if ! param import
then
param reset_all
fi