Skip to content
Snippets Groups Projects
Commit c37a7cd9 authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Plane: update AP_Notify flags for arming state

parent aae0e3c0
No related branches found
No related tags found
No related merge requests found
...@@ -966,6 +966,10 @@ static void one_second_loop() ...@@ -966,6 +966,10 @@ static void one_second_loop()
mavlink_system.sysid = g.sysid_this_mav; mavlink_system.sysid = g.sysid_this_mav;
update_aux(); update_aux();
// update notify flags
AP_Notify::flags.pre_arm_check = arming.pre_arm_checks(false);
AP_Notify::flags.armed = arming.is_armed() || arming.arming_required() == AP_Arming::NO;
} }
static void log_perf_info() static void log_perf_info()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment