Skip to content

Commit 9258bb2

Browse files
committed
v1.4.0 transitional support for battery count
1 parent 88cf8f2 commit 9258bb2

File tree

1 file changed

+10
-0
lines changed
  • ROMFS/px4fmu_common/init.d

1 file changed

+10
-0
lines changed

ROMFS/px4fmu_common/init.d/rcS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@ then
109109
set AUTOCNF yes
110110
else
111111
set AUTOCNF no
112+
113+
#
114+
# Release 1.4.0 transitional support:
115+
# set to old default if unconfigured.
116+
# this preserves the previous behaviour
117+
#
118+
if param compare BAT_N_CELLS 0
119+
then
120+
param set BAT_N_CELLS 3
121+
fi
112122
fi
113123

114124
#

0 commit comments

Comments
 (0)