PX4: removed attempt at formatting microSD

this never worked, and its a bad idea anyway
This commit is contained in:
Andrew Tridgell 2017-04-15 10:49:50 +10:00 committed by Peter Barker
parent 92f060bdef
commit e8117f5f46
1 changed files with 1 additions and 23 deletions

View File

@ -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