mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 00:30:50 +08:00
Only attempt to load EEPROM parameters when the file exists
This commit is contained in:
1 parent
f53f63b06d
commit
b9a5f71476
1 file changed
+4
-1
@@ -7,7 +7,10 @@ uorb start
|
||||
|
||||
echo "[init] eeprom"
|
||||
eeprom start
|
||||
eeprom load_param /eeprom/parameters
|
||||
if [ -f /eeprom/parameters]
|
||||
then
|
||||
eeprom load_param /eeprom/parameters
|
||||
fi
|
||||
|
||||
echo "[init] sensors"
|
||||
#bma180 start
|
||||
|
||||
Reference in new issue
Block a user