From 139325769f2dc385ceab834f73627608d1c3ef67 Mon Sep 17 00:00:00 2001 From: Bob Long Date: Wed, 6 Dec 2023 17:40:56 +1100 Subject: [PATCH] AP_Periph: fix arm_update_status missing update This flag was never getting set to true OV3-1027 --- Tools/AP_Periph/can.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/AP_Periph/can.cpp b/Tools/AP_Periph/can.cpp index 510f46eb70..5b09c6c185 100644 --- a/Tools/AP_Periph/can.cpp +++ b/Tools/AP_Periph/can.cpp @@ -607,6 +607,9 @@ static void handle_arming_status(CanardInstance* ins, CanardRxTransfer* transfer return; } hal.util->set_soft_armed(req.status == UAVCAN_EQUIPMENT_SAFETY_ARMINGSTATUS_STATUS_FULLY_ARMED); +#ifdef HAL_PERIPH_ARM_MONITORING_ENABLE + periph.arm_update_status = true; +#endif } #ifdef HAL_PERIPH_ENABLE_GPS