Hotfix for IO-less systems

This commit is contained in:
Lorenz Meier 2013-08-31 11:56:39 +02:00
parent 3f4315b476
commit ccc5bef3af
1 changed files with 10 additions and 6 deletions

View File

@ -115,14 +115,18 @@ then
echo "PX4IO running, not upgrading"
else
echo "Attempting to upgrade PX4IO"
px4io update
if [ -d /fs/microsd ]
if px4io update
then
echo "Flashed PX4IO Firmware OK" > /fs/microsd/px4io.log
fi
if [ -d /fs/microsd ]
then
echo "Flashed PX4IO Firmware OK" > /fs/microsd/px4io.log
fi
# Allow IO to safely kick back to app
usleep 200000
# Allow IO to safely kick back to app
usleep 200000
else
echo "No PX4IO to upgrade here"
fi
fi
#