diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index d1c42eeb34..307085fb7b 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1796,6 +1796,7 @@ void AP_Arming::check_forced_logging(const AP_Arming::Method method) case Method::GCS_FAILSAFE_HOLDFAILED: case Method::PILOT_INPUT_FAILSAFE: case Method::DEADRECKON_FAILSAFE: + case Method::BLACKBOX: // keep logging for longer if disarmed for a bad reason AP::logger().set_long_log_persist(true); return; diff --git a/libraries/AP_Arming/AP_Arming.h b/libraries/AP_Arming/AP_Arming.h index 8eba06bd2d..b5d3c76521 100644 --- a/libraries/AP_Arming/AP_Arming.h +++ b/libraries/AP_Arming/AP_Arming.h @@ -75,6 +75,7 @@ public: TOYMODELANDFORCE = 31, // only disarm uses this... LANDING = 32, // only disarm uses this... DEADRECKON_FAILSAFE = 33, // only disarm uses this... + BLACKBOX = 34, UNKNOWN = 100, };