Browse Source

AP_Param: avoid a notify if value is already correct

master
Andrew Tridgell 8 years ago committed by Lucas De Marchi
parent
commit
eaa68f32e3
  1. 6
      libraries/AP_Param/AP_Param.h

6
libraries/AP_Param/AP_Param.h

@ -536,8 +536,10 @@ public: @@ -536,8 +536,10 @@ public:
/// Value setter - set value, tell GCS
///
void set_and_notify(const T &v) {
set(v);
notify();
if (v != _value) {
set(v);
notify();
}
}
/// Combined set and save

Loading…
Cancel
Save