Skip to content

Commit 80f3dd0

Browse files
Fix isFinished in sequentialcommandgroup.py
- isFinished is false after command is finished See allwpilib#7901 [here](wpilibsuite/allwpilib#7901)
1 parent e8cea7f commit 80f3dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: commands2/sequentialcommandgroup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def end(self, interrupted: bool):
8686
self._currentCommandIndex = -1
8787

8888
def isFinished(self) -> bool:
89-
return self._currentCommandIndex == len(self._commands)
89+
return self._currentCommandIndex == len(self._commands) or self._currentCommandIndex == -1
9090

9191
def runsWhenDisabled(self) -> bool:
9292
return self._runsWhenDisabled

0 commit comments

Comments
 (0)