Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Change andThen to a finallyDo so the interrupt is disabled when t…
Browse files Browse the repository at this point in the history
…he command group is interrupted
  • Loading branch information
CoffeeCoder1 committed Mar 27, 2024
1 parent 841d877 commit 13afc3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Head.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public Command IntakePiece() {
intakeInterrupt.enable();
}, this)
.andThen(Commands.waitUntil(() -> isNoteWithinSensor()))
.andThen(() -> {
.finallyDo(() -> {
intakeInterrupt.disable();
});
}
Expand Down

0 comments on commit 13afc3d

Please sign in to comment.