mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 20:33:34 +08:00
v1.4.0 transitional support for battery count
This commit is contained in:
@@ -109,6 +109,16 @@ then
|
|||||||
set AUTOCNF yes
|
set AUTOCNF yes
|
||||||
else
|
else
|
||||||
set AUTOCNF no
|
set AUTOCNF no
|
||||||
|
|
||||||
|
#
|
||||||
|
# Release 1.4.0 transitional support:
|
||||||
|
# set to old default if unconfigured.
|
||||||
|
# this preserves the previous behaviour
|
||||||
|
#
|
||||||
|
if param compare BAT_N_CELLS 0
|
||||||
|
then
|
||||||
|
param set BAT_N_CELLS 3
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user