diff options
author | px4dev <px4@purgatory.org> | 2012-09-03 02:45:09 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-09-03 02:45:09 -0700 |
commit | b9a5f714760a2bdfa8bfdbce8e39a2ec471b4c12 (patch) | |
tree | 8ea523062b055966270ab3c7ed3c875697f19025 /ROMFS/scripts/rc.PX4FMU_quad_x | |
parent | f53f63b06db26c37ca710da8dd0d7ed87f288464 (diff) | |
download | px4-firmware-b9a5f714760a2bdfa8bfdbce8e39a2ec471b4c12.tar.gz px4-firmware-b9a5f714760a2bdfa8bfdbce8e39a2ec471b4c12.tar.bz2 px4-firmware-b9a5f714760a2bdfa8bfdbce8e39a2ec471b4c12.zip |
Only attempt to load EEPROM parameters when the file exists
Diffstat (limited to 'ROMFS/scripts/rc.PX4FMU_quad_x')
-rw-r--r-- | ROMFS/scripts/rc.PX4FMU_quad_x | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ROMFS/scripts/rc.PX4FMU_quad_x b/ROMFS/scripts/rc.PX4FMU_quad_x index 53c38dd3b..aca990d33 100644 --- a/ROMFS/scripts/rc.PX4FMU_quad_x +++ b/ROMFS/scripts/rc.PX4FMU_quad_x @@ -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 |