Skip to content

Commit

Permalink
forgot to add a null handler (whoops)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetirobotics committed Mar 10, 2025
1 parent 38febdf commit da0cadf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/subsystems/led/LEDSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public void clearAnimation() {
}

public void setAnimation(Events animation) {
if (animation == null) {
animation = Events.IDLETELEOP;
}
switch (animation) {
case NICK:
event = Events.NICK;
Expand Down

0 comments on commit da0cadf

Please sign in to comment.