AP_Param: Fix failing to invalidate the cached parameter count

This would cause a GCS to download fewer then the requested number of
parameters
This commit is contained in:
Michael du Breuil 2020-01-14 18:15:31 -07:00 committed by Andrew Tridgell
parent 9f32170da7
commit 55c00b9957

View File

@ -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;
}