diff --git a/libraries/APM_Control/AP_AutoTune.cpp b/libraries/APM_Control/AP_AutoTune.cpp index e3165593c8..3f972eb894 100644 --- a/libraries/APM_Control/AP_AutoTune.cpp +++ b/libraries/APM_Control/AP_AutoTune.cpp @@ -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); + } }