mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:37:34 +08:00
cs_check: only abort if running
This commit is contained in:
@@ -346,7 +346,7 @@ ControlAllocator::Run()
|
||||
|
||||
_armed = vehicle_status.arming_state == vehicle_status_s::ARMING_STATE_ARMED;
|
||||
|
||||
if (_armed) {
|
||||
if (_armed && _preflight_check_running) {
|
||||
preflight_check_abort(now);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user