APM_Control: allow for multiple stop calls in autotune

This commit is contained in:
Andrew Tridgell 2014-08-14 16:03:23 +10:00 committed by Andrew Tridgell
parent 9bd8e215b2
commit 5e80f0cf72

View File

@ -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);
}
}