commander: try to fix arm authorization spamming

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2024-10-07 14:05:02 +03:00
committed by Roman Bapst
parent e3dd050c91
commit a0e6f9cd70
5 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -594,7 +594,7 @@ transition_result_t Commander::arm(arm_disarm_reason_t calling_reason, bool run_
return TRANSITION_DENIED;
}
_health_and_arming_checks.update();
_health_and_arming_checks.update(false, true);
if (!_health_and_arming_checks.canArm(_vehicle_status.nav_state)) {
tune_negative(true);