From 9258bb2ae8e4ddc814dee8f73dd691e263209f70 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 2 Jul 2016 12:08:57 +0200 Subject: [PATCH] v1.4.0 transitional support for battery count --- ROMFS/px4fmu_common/init.d/rcS | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 6ef983e40c..834a4f655a 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -109,6 +109,16 @@ then set AUTOCNF yes else 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 #