From be9ac273ce026769072a1b93eb227cd44f0b4070 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 10 Dec 2016 08:32:27 +1100 Subject: [PATCH] AP_Param: apply notify check to AP_ParamV too thanks to Francisco --- libraries/AP_Param/AP_Param.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Param/AP_Param.h b/libraries/AP_Param/AP_Param.h index 5fa05bb3d1..43234a8605 100644 --- a/libraries/AP_Param/AP_Param.h +++ b/libraries/AP_Param/AP_Param.h @@ -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