From 265b9a42fb566d4438a06e139b2133744c0f5b9f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Apr 2020 09:01:25 +1000 Subject: [PATCH] ArduCopter: invalidate param count when changing param tree structure --- ArduCopter/system.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp index 56186eb5fd..d61b66c376 100644 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -611,6 +611,9 @@ void Copter::allocate_motors(void) #if FRAME_CONFIG == HELI_FRAME convert_tradheli_parameters(); #endif + + // param count could have changed + AP_Param::invalidate_count(); } bool Copter::is_tradheli() const