Browse Source

AP_Param: Fix failing to invalidate the cached parameter count

This would cause a GCS to download fewer then the requested number of
parameters
celiu-4.0.17-rc8
Michael du Breuil 5 years ago committed by Andrew Tridgell
parent
commit
55c00b9957
  1. 1
      libraries/AP_Param/AP_Param.h

1
libraries/AP_Param/AP_Param.h

@ -444,6 +444,7 @@ public: @@ -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;
}

Loading…
Cancel
Save