Skip to content

Commit

Permalink
rc.APM: disarm px4io before trying to update
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Jan 29, 2015
1 parent 6201b8a commit 4ecfd0f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mk/PX4/ROMFS/init.d/rc.APM
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,16 @@ then
echo "PX4IO CRC failure"
echo "PX4IO CRC failure" >> $logfile
tone_alarm MBABGP

if px4io safety_disarm
then
echo "PX4IO disarm OK"
else
echo "PX4IO disarm failed"
fi

sleep 1

if px4io forceupdate 14662 /etc/px4io/px4io.bin
then
sleep 1
Expand Down

0 comments on commit 4ecfd0f

Please sign in to comment.