Sub: Support not sending a status text on state change

This commit is contained in:
Michael du Breuil 2023-10-23 11:05:07 -07:00 committed by WickedShell
parent 28d4603a46
commit 9e07fbd949

View File

@ -105,7 +105,7 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks)
} }
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
gcs().send_text(MAV_SEVERITY_INFO, "Arming motors"); send_arm_disarm_statustext("Arming motors");
#endif #endif
AP_AHRS &ahrs = AP::ahrs(); AP_AHRS &ahrs = AP::ahrs();
@ -161,7 +161,7 @@ bool AP_Arming_Sub::disarm(const AP_Arming::Method method, bool do_disarm_checks
} }
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL #if CONFIG_HAL_BOARD == HAL_BOARD_SITL
gcs().send_text(MAV_SEVERITY_INFO, "Disarming motors"); send_arm_disarm_statustext("Disarming motors");
#endif #endif
auto &ahrs = AP::ahrs(); auto &ahrs = AP::ahrs();