Skip to content

Commit d6f2bfb

Browse files
authored
[commands] Remove unsafe default command isFinished check (#4411)
1 parent 26b0de1 commit d6f2bfb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/frc2/command/CommandScheduler.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,6 @@ class CommandScheduler final : public nt::NTSendable,
182182
throw FRC_MakeError(frc::err::CommandIllegalUse,
183183
"Default commands must require their subsystem!");
184184
}
185-
if (defaultCommand.IsFinished()) {
186-
throw FRC_MakeError(frc::err::CommandIllegalUse,
187-
"Default commands should not end!");
188-
}
189185
SetDefaultCommandImpl(subsystem,
190186
std::make_unique<std::remove_reference_t<T>>(
191187
std::forward<T>(defaultCommand)));

0 commit comments

Comments
 (0)