mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Make boot slightly less verbose
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -60,7 +60,6 @@ set LOG_FILE /fs/microsd/bootlog.txt
|
|||||||
# REBOOTWORK this needs to start after the flight control loop
|
# REBOOTWORK this needs to start after the flight control loop
|
||||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||||
then
|
then
|
||||||
echo "[i] microSD mounted: /fs/microsd"
|
|
||||||
if hardfault_log check
|
if hardfault_log check
|
||||||
then
|
then
|
||||||
tone_alarm error
|
tone_alarm error
|
||||||
@@ -79,9 +78,9 @@ else
|
|||||||
then
|
then
|
||||||
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
if mount -t vfat /dev/mmcsd0 /fs/microsd
|
||||||
then
|
then
|
||||||
echo "INFO [init] MicroSD card formatted"
|
echo "INFO [init] card formatted"
|
||||||
else
|
else
|
||||||
echo "ERROR [init] Format failed"
|
echo "ERROR [init] format failed"
|
||||||
tone_alarm MNBG
|
tone_alarm MNBG
|
||||||
set LOG_FILE /dev/null
|
set LOG_FILE /dev/null
|
||||||
fi
|
fi
|
||||||
@@ -97,7 +96,6 @@ fi
|
|||||||
set FRC /fs/microsd/etc/rc.txt
|
set FRC /fs/microsd/etc/rc.txt
|
||||||
if [ -f $FRC ]
|
if [ -f $FRC ]
|
||||||
then
|
then
|
||||||
echo "INFO [init] Executing script: ${FRC}"
|
|
||||||
sh $FRC
|
sh $FRC
|
||||||
set MODE custom
|
set MODE custom
|
||||||
fi
|
fi
|
||||||
@@ -316,8 +314,6 @@ then
|
|||||||
|
|
||||||
if px4io checkcrc ${IO_FILE}
|
if px4io checkcrc ${IO_FILE}
|
||||||
then
|
then
|
||||||
echo "[init] PX4IO CRC OK" >> $LOG_FILE
|
|
||||||
|
|
||||||
set IO_PRESENT yes
|
set IO_PRESENT yes
|
||||||
else
|
else
|
||||||
tone_alarm MLL32CP8MB
|
tone_alarm MLL32CP8MB
|
||||||
|
|||||||
Reference in New Issue
Block a user