diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-11 14:56:13 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-11 14:56:13 +0200 |
commit | 2ca89032409d0519e242006fa34ab26548fdd7e0 (patch) | |
tree | 9cdb4aa10c53405264ecf8ddf015520fa3e87a52 /ROMFS | |
parent | 258fb27e146ad175ca89a84ebc9c340a53db0884 (diff) | |
download | px4-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/rcS | 7 |
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 # |