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
This commit is contained in:
DrZiplok@gmail.com 2011-02-21 05:12:58 +00:00
parent 57bead1964
commit 1115986749
1 changed files with 2 additions and 2 deletions

View File

@ -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.