diff --git a/libraries/AP_Common/AP_Var.h b/libraries/AP_Common/AP_Var.h index df2645426f..fefa6d00e6 100644 --- a/libraries/AP_Common/AP_Var.h +++ b/libraries/AP_Common/AP_Var.h @@ -546,9 +546,9 @@ public: /// Combined set and save /// - void set_and_save(T v) { + bool set_and_save(T v) { set(v); - save(); + return save(); } /// Conversion to T returns a reference to the value.