failsafe: prevent Hold when no action is taken (#26383)

This commit is contained in:
Nick 2026-01-30 14:09:56 +01:00 committed by GitHub
parent 8d97013822
commit 40dc011d82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,6 +422,7 @@ FailsafeBase::ActionOptions Failsafe::fromRemainingFlightTimeLowActParam(int par
switch (command_after_remaining_flight_time_low(param_value)) {
case command_after_remaining_flight_time_low::None:
options.action = Action::None;
options.allow_user_takeover = UserTakeoverAllowed::Never; // Execute immediately without delay
break;
case command_after_remaining_flight_time_low::Warning:
@ -435,6 +436,7 @@ FailsafeBase::ActionOptions Failsafe::fromRemainingFlightTimeLowActParam(int par
default:
options.action = Action::None;
options.allow_user_takeover = UserTakeoverAllowed::Never;
break;
}