mirror of https://github.com/ArduPilot/ardupilot
PX4: removed attempt at formatting microSD
this never worked, and its a bad idea anyway
This commit is contained in:
parent
92f060bdef
commit
e8117f5f46
|
@ -34,29 +34,7 @@ then
|
|||
fi
|
||||
else
|
||||
set HAVE_MICROSD 0
|
||||
echo "Trying format of microSD"
|
||||
tone_alarm MBAGP
|
||||
if mkfatfs /dev/mmcsd0
|
||||
then
|
||||
echo "microSD card formatted"
|
||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||
then
|
||||
echo "format succeeded"
|
||||
set HAVE_MICROSD 1
|
||||
if [ -f /etc/tones/startup ]
|
||||
then
|
||||
tone_alarm /etc/tones/startup
|
||||
else
|
||||
tone_alarm 1
|
||||
fi
|
||||
else
|
||||
echo "mount failed"
|
||||
tone_alarm MNBG
|
||||
fi
|
||||
else
|
||||
echo "format failed"
|
||||
tone_alarm MNBGG
|
||||
fi
|
||||
tone_alarm MNBGG
|
||||
fi
|
||||
|
||||
# Look for an additional init script that allows changing the default
|
||||
|
|
Loading…
Reference in New Issue