mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Hotfix: Guard against corrupted param files, still boot the system if they occur
This commit is contained in:
@@ -84,7 +84,12 @@ then
|
|||||||
param select /fs/microsd/params
|
param select /fs/microsd/params
|
||||||
if [ -f /fs/microsd/params ]
|
if [ -f /fs/microsd/params ]
|
||||||
then
|
then
|
||||||
param load /fs/microsd/params
|
if param load /fs/microsd/params
|
||||||
|
then
|
||||||
|
echo "Parameters loaded"
|
||||||
|
else
|
||||||
|
echo "Parameter file corrupt - ignoring"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user