mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Test no-op behavior of scheduling a scheduled command (#4806)
This commit is contained in:
@@ -217,8 +217,8 @@ public final class CommandScheduler implements NTSendable, AutoCloseable {
|
||||
// Do nothing if the scheduler is disabled, the robot is disabled and the command doesn't
|
||||
// run when disabled, or the command is already scheduled.
|
||||
if (m_disabled
|
||||
|| RobotState.isDisabled() && !command.runsWhenDisabled()
|
||||
|| isScheduled(command)) {
|
||||
|| isScheduled(command)
|
||||
|| RobotState.isDisabled() && !command.runsWhenDisabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user