mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
Reboot if IO update startup fails on first try
This commit is contained in:
@@ -176,7 +176,7 @@ then
|
|||||||
tone_alarm MBABGP
|
tone_alarm MBABGP
|
||||||
if px4io forceupdate 14662 $io_file
|
if px4io forceupdate 14662 $io_file
|
||||||
then
|
then
|
||||||
usleep 200000
|
usleep 500000
|
||||||
if px4io start
|
if px4io start
|
||||||
then
|
then
|
||||||
echo "PX4IO restart OK"
|
echo "PX4IO restart OK"
|
||||||
@@ -186,7 +186,8 @@ then
|
|||||||
echo "PX4IO restart failed"
|
echo "PX4IO restart failed"
|
||||||
echo "PX4IO restart failed" >> $logfile
|
echo "PX4IO restart failed" >> $logfile
|
||||||
tone_alarm MNGGG
|
tone_alarm MNGGG
|
||||||
sh /etc/init.d/rc.error
|
sleep 10
|
||||||
|
reboot
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "PX4IO update failed"
|
echo "PX4IO update failed"
|
||||||
|
|||||||
Reference in New Issue
Block a user