mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
AP_Param: apply notify check to AP_ParamV too
thanks to Francisco
This commit is contained in:
parent
a440ac4c9d
commit
be9ac273ce
@ -641,9 +641,11 @@ public:
|
|||||||
/// Value setter - set value, tell GCS
|
/// Value setter - set value, tell GCS
|
||||||
///
|
///
|
||||||
void set_and_notify(const T &v) {
|
void set_and_notify(const T &v) {
|
||||||
|
if (v != _value) {
|
||||||
set(v);
|
set(v);
|
||||||
notify();
|
notify();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Combined set and save
|
/// Combined set and save
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user