mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
APM_Control: allow for multiple stop calls in autotune
This commit is contained in:
parent
9bd8e215b2
commit
5e80f0cf72
@ -150,8 +150,10 @@ void AP_AutoTune::start(void)
|
||||
*/
|
||||
void AP_AutoTune::stop(void)
|
||||
{
|
||||
running = false;
|
||||
save_gains(restore);
|
||||
if (running) {
|
||||
running = false;
|
||||
save_gains(restore);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user