mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Revert "AP_Param: add set_and_save_and_notify()"
This reverts commit 96a2aa485a
.
This commit is contained in:
parent
787d7f5254
commit
150b8653a4
@ -777,19 +777,6 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Value setter - set value and save, tell GCS
|
|
||||||
///
|
|
||||||
void set_and_save_and_notify(const T &v) {
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
|
||||||
if (v != _value) {
|
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
set(v);
|
|
||||||
save(true);
|
|
||||||
notify();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Combined set and save
|
/// Combined set and save
|
||||||
///
|
///
|
||||||
void set_and_save(const T &v) {
|
void set_and_save(const T &v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user