From 111598674914a5e10cafaf6558e7aed0fc050664 Mon Sep 17 00:00:00 2001 From: "DrZiplok@gmail.com" Date: Mon, 21 Feb 2011 05:12:58 +0000 Subject: [PATCH] Fix ::set_and_save to return the result of the ::save call. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1707 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/AP_Var.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.