rc.APM: disarm px4io before trying to update

This commit is contained in:
Jonathan Challinger 2015-01-28 17:33:10 -08:00 committed by Andrew Tridgell
parent db9c8548a5
commit 604742ac0e
1 changed files with 10 additions and 0 deletions

View File

@ -148,6 +148,16 @@ then
echo "PX4IO CRC failure"
echo "PX4IO CRC failure" >> $logfile
tone_alarm MBABGP
if px4io safety_on
then
echo "PX4IO disarm OK"
else
echo "PX4IO disarm failed"
fi
sleep 1
if px4io forceupdate 14662 /etc/px4io/px4io.bin
then
sleep 1