Copter: re-added reason to mode change log msg
this was lost in the mode restructuring
This commit is contained in:
parent
ab413b4605
commit
8d49e1ac18
@ -177,7 +177,7 @@ bool Copter::set_mode(control_mode_t mode, mode_reason_t reason)
|
||||
flightmode = new_flightmode;
|
||||
control_mode = mode;
|
||||
control_mode_reason = reason;
|
||||
DataFlash.Log_Write_Mode(control_mode);
|
||||
DataFlash.Log_Write_Mode(control_mode, reason);
|
||||
|
||||
#if ADSB_ENABLED == ENABLED
|
||||
adsb.set_is_auto_mode((mode == AUTO) || (mode == RTL) || (mode == GUIDED));
|
||||
|
Loading…
Reference in New Issue
Block a user