ArduCopter: invalidate param count when changing param tree structure

This commit is contained in:
Andrew Tridgell 2020-04-19 09:01:25 +10:00
parent ffe9fa22a1
commit 265b9a42fb
1 changed files with 3 additions and 0 deletions

View File

@ -611,6 +611,9 @@ void Copter::allocate_motors(void)
#if FRAME_CONFIG == HELI_FRAME #if FRAME_CONFIG == HELI_FRAME
convert_tradheli_parameters(); convert_tradheli_parameters();
#endif #endif
// param count could have changed
AP_Param::invalidate_count();
} }
bool Copter::is_tradheli() const bool Copter::is_tradheli() const