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
zr-v5.1
Michael du Breuil 5 years ago committed by Andrew Tridgell
parent
commit
1f20cc10f8
  1. 1
      libraries/AP_Param/AP_Param.h

1
libraries/AP_Param/AP_Param.h

@ -451,6 +451,7 @@ public: @@ -451,6 +451,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