Plane: fixed qautotune exit

this was lost in the onion changes
This commit is contained in:
Andrew Tridgell 2019-04-30 14:43:10 +10:00
parent 3170327a9c
commit cd72657c94
2 changed files with 8 additions and 0 deletions

View File

@ -447,4 +447,5 @@ public:
protected:
bool _enter() override;
void _exit() override;
};

View File

@ -11,3 +11,10 @@ void ModeQAutotune::update()
plane.mode_qstabilize.update();
}
void ModeQAutotune::_exit()
{
#if QAUTOTUNE_ENABLED
plane.quadplane.qautotune.stop();
#endif
}