mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
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
|
/// Combined set and save
|
||||||
///
|
///
|
||||||
void set_and_save(T v) {
|
bool set_and_save(T v) {
|
||||||
set(v);
|
set(v);
|
||||||
save();
|
return save();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Conversion to T returns a reference to the value.
|
/// Conversion to T returns a reference to the value.
|
||||||
|
Loading…
Reference in New Issue
Block a user