From a26d19b57c1652b504fd8232f16da3954a5e480f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 6 Jan 2018 16:53:48 +1100 Subject: [PATCH] Copter: fill in flight mode in AP_Notify flags needed for AP_Radio --- ArduCopter/mode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduCopter/mode.cpp b/ArduCopter/mode.cpp index f5fbcaa861..584c709096 100644 --- a/ArduCopter/mode.cpp +++ b/ArduCopter/mode.cpp @@ -234,6 +234,7 @@ void Copter::exit_mode(Copter::Mode *&old_flightmode, // notify_flight_mode - sets notify object based on current flight mode. Only used for OreoLED notify device void Copter::notify_flight_mode() { AP_Notify::flags.autopilot_mode = flightmode->is_autopilot(); + AP_Notify::flags.flight_mode = control_mode; notify.set_flight_mode_str(flightmode->name4()); }