mirror of https://github.com/ArduPilot/ardupilot
AntennaTracker: move control_mode_reason up to AP_Vehicle
This commit is contained in:
parent
f15a1fbd62
commit
ed4a61d5d9
|
@ -173,6 +173,8 @@ void Tracker::prepare_servos()
|
|||
|
||||
void Tracker::set_mode(Mode &newmode, const ModeReason reason)
|
||||
{
|
||||
control_mode_reason = reason;
|
||||
|
||||
if (mode == &newmode) {
|
||||
// don't switch modes if we are already in the correct mode.
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue