mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 02:28:29 -04:00
AP_Param: avoid a notify if value is already correct
This commit is contained in:
parent
e1d5b23144
commit
95f00b4891
@ -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…
Reference in New Issue
Block a user