diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 0aa8f4b027..28e38d3893 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -444,6 +444,7 @@ public: // set frame type flags. Used to unhide frame specific parameters static void set_frame_type_flags(uint16_t flags_to_set) { + _parameter_count = 0; _frame_type_flags |= flags_to_set; }