mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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
|
fi
|
||||||
else
|
else
|
||||||
set HAVE_MICROSD 0
|
set HAVE_MICROSD 0
|
||||||
echo "Trying format of microSD"
|
tone_alarm MNBGG
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Look for an additional init script that allows changing the default
|
# Look for an additional init script that allows changing the default
|
||||||
|
Loading…
Reference in New Issue
Block a user