AP_Motors: bug fix to save params on disarm
Previously was saving during arming as well as disarming. Thanks to OXINARF for finding this!
This commit is contained in:
parent
a2ffd9ec7d
commit
23f8227e36
@ -62,7 +62,9 @@ void AP_Motors::armed(bool arm)
|
||||
if (_flags.armed != arm) {
|
||||
_flags.armed = arm;
|
||||
AP_Notify::flags.armed = arm;
|
||||
save_params_on_disarm();
|
||||
if (!arm) {
|
||||
save_params_on_disarm();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user