mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-14 17:33:33 +08:00
Firmware rename for px4io to avoid using board label in name.
This commit is contained in:
@@ -260,11 +260,11 @@ then
|
||||
#
|
||||
# Check if PX4IO present and update firmware if needed
|
||||
#
|
||||
if [ -f /etc/extras/px4io-v2_default.bin ]
|
||||
if [ -f /etc/extras/px4io-v2.bin ]
|
||||
then
|
||||
set IO_FILE /etc/extras/px4io-v2_default.bin
|
||||
set IO_FILE /etc/extras/px4io-v2.bin
|
||||
else
|
||||
set IO_FILE /etc/extras/px4io-v1_default.bin
|
||||
set IO_FILE /etc/extras/px4io-v1.bin
|
||||
fi
|
||||
|
||||
if px4io checkcrc ${IO_FILE}
|
||||
|
||||
@@ -55,11 +55,11 @@ else
|
||||
echo "[param] FAILED loading $PARAM_FILE"
|
||||
fi
|
||||
|
||||
if [ -f /etc/extras/px4io-v2_default.bin ]
|
||||
if [ -f /etc/extras/px4io-v2.bin ]
|
||||
then
|
||||
set io_file /etc/extras/px4io-v2_default.bin
|
||||
set io_file /etc/extras/px4io-v2.bin
|
||||
else
|
||||
set io_file /etc/extras/px4io-v1_default.bin
|
||||
set io_file /etc/extras/px4io-v1.bin
|
||||
fi
|
||||
|
||||
if px4io start
|
||||
|
||||
Reference in New Issue
Block a user