Skip to content

Commit

Permalink
Fix the hadGamePieceLast boolean sync issue.
Browse files Browse the repository at this point in the history
Discussed in #51
  • Loading branch information
GalexY727 authored Jan 24, 2024
1 parent 644db44 commit b208d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/ElevatorSubs/Claw.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public Claw() {

@Override
public void periodic() {
this.hasGamePiece = hasGamePiece();
this.hadGamePieceLast = this.hasGamePiece;
this.hasGamePiece = hasGamePiece();
}

public Command placeCommand() {
Expand Down

0 comments on commit b208d2e

Please sign in to comment.