mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:03:34 +08:00
ROMFS handle bl_update generically
- include all available legacy bootloaders
This commit is contained in:
committed by
Lorenz Meier
parent
3ad0da51c4
commit
f8eaa6e46b
@@ -3,25 +3,6 @@
|
||||
# board specific defaults
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# Bootloader upgrade
|
||||
#
|
||||
set BL_FILE /etc/extras/mro_ctrl-zero-h7_bootloader.bin
|
||||
if [ -f $BL_FILE ]
|
||||
then
|
||||
if param compare SYS_BL_UPDATE 1
|
||||
then
|
||||
param set SYS_BL_UPDATE 0
|
||||
param save
|
||||
echo "BL update..."
|
||||
bl_update $BL_FILE
|
||||
echo "BL update done"
|
||||
reboot
|
||||
fi
|
||||
fi
|
||||
unset BL_FILE
|
||||
|
||||
|
||||
param set-default BAT_V_DIV 10.1
|
||||
param set-default BAT1_V_DIV 10.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user