aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2014-08-11 14:56:13 +0200
committerLorenz Meier <lm@inf.ethz.ch>2014-08-11 14:56:13 +0200
commit2ca89032409d0519e242006fa34ab26548fdd7e0 (patch)
tree9cdb4aa10c53405264ecf8ddf015520fa3e87a52 /ROMFS
parent258fb27e146ad175ca89a84ebc9c340a53db0884 (diff)
downloadpx4-firmware-2ca89032409d0519e242006fa34ab26548fdd7e0.tar.gz
px4-firmware-2ca89032409d0519e242006fa34ab26548fdd7e0.tar.bz2
px4-firmware-2ca89032409d0519e242006fa34ab26548fdd7e0.zip
If we failed loading params, reset them (if the file handle is valid the file is corrupted and there is no hope, if its just not present the reset command will not do anything)
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/rcS7
1 files changed, 5 insertions, 2 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index 72cd4b0e1..c9e6a27ca 100644
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -83,9 +83,12 @@ then
param select $PARAM_FILE
if param load
then
- echo "[init] Params loaded: $PARAM_FILE"
+ echo "[param] Loaded: $PARAM_FILE"
else
- echo "[init] ERROR: Params loading failed: $PARAM_FILE"
+ echo "[param] FAILED loading $PARAM_FILE"
+ if param reset
+ then
+ fi
fi
#