AP_Param: apply notify check to AP_ParamV too

thanks to Francisco
This commit is contained in:
Andrew Tridgell 2016-12-10 08:32:27 +11:00 committed by Randy Mackay
parent c81f1e1032
commit 52ca752539
1 changed files with 4 additions and 2 deletions

View File

@ -641,8 +641,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