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

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Craftzman7 authored Oct 8, 2024
1 parent 93d6192 commit 4a04f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/frcteam3636/frc2024/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ object Robot : LoggedRobot() {
}
}

private fun doIntakeSequence(handeoffTimeout: Double?): Command =
private fun doIntakeSequence(handoffTimeout: Double?): Command =
Commands.sequence(
Intake.intake(),
Commands.runOnce({ Note.state = Note.State.HANDOFF }),
Expand All @@ -324,8 +324,8 @@ private fun doIntakeSequence(handeoffTimeout: Double?): Command =
Commands.waitUntil(Trigger { !Shooter.Flywheels.aboveIntakeThreshold }),
Commands.runOnce({ Note.state = Note.State.SHOOTER })
).let {
if (handeoffTimeout != null) {
return it.withTimeout(handeoffTimeout)
if (handoffTimeout != null) {
return it.withTimeout(handoffTimeout)
} else {
return it
}
Expand Down

0 comments on commit 4a04f4e

Please sign in to comment.