mirror of https://github.com/ArduPilot/ardupilot
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:
parent
57bead1964
commit
1115986749
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue