aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Kenga <anton.k@airdog.com>2014-11-29 00:05:06 +0200
committerAnthony Kenga <anton.k@airdog.com>2014-11-29 00:05:06 +0200
commit74b3bc69ca7fc307f2e066921316c38460529405 (patch)
tree1328bcba739646130476d41a65263a0051f0ef8c
parent5329febfb8ac08d124be5e9bbf03857b62379134 (diff)
downloadpx4-firmware-74b3bc69ca7fc307f2e066921316c38460529405.tar.gz
px4-firmware-74b3bc69ca7fc307f2e066921316c38460529405.tar.bz2
px4-firmware-74b3bc69ca7fc307f2e066921316c38460529405.zip
Corrected IO chip checking and flashing for the new IO firmware
-rw-r--r--ROMFS/AirDogFMU/init.d/rcS11
1 files changed, 3 insertions, 8 deletions
diff --git a/ROMFS/AirDogFMU/init.d/rcS b/ROMFS/AirDogFMU/init.d/rcS
index 938b7a05f..70cc16604 100644
--- a/ROMFS/AirDogFMU/init.d/rcS
+++ b/ROMFS/AirDogFMU/init.d/rcS
@@ -33,7 +33,7 @@ set MIXER FMU_quad_x
set VEHICLE_TYPE mc
set MAV_TYPE 2
-#set ALWAYS_DEBUG_MODE yes
+set ALWAYS_DEBUG_MODE yes
# Do IO checks as early as possible while IO chip is in bootloader mode
set IO_PRESENT no
@@ -42,13 +42,8 @@ if [ $USE_IO == yes ]
then
#
# Check if PX4IO present and update firmware if needed
- #
- if [ -f /etc/extras/px4io-v2_default.bin ]
- then
- set IO_FILE /etc/extras/px4io-v2_default.bin
- else
- set IO_FILE /etc/extras/px4io-v1_default.bin
- fi
+ #
+ set IO_FILE /etc/extras/AirDogIO_default.bin
# usleep 2000000
if px4io checkcrc $IO_FILE