Skip to content

Commit 1bdf0a5

Browse files
committed
Oops. Fix a crashing bug!
1 parent 9470efa commit 1bdf0a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/frc/robot/Robot.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public class Robot extends TimedRobot {
3939

4040
private static final int NUM_LOOPS = 40;
4141
private int delay = NUM_LOOPS;
42-
private IdleCommand idleCommand = new IdleCommand();
4342

4443
/**
4544
* This function is run when the robot is first started up and should be used
@@ -154,7 +153,7 @@ public void autonomousPeriodic() {
154153
public void teleopInit() {
155154

156155
Status.getInstance().setTeleopStartTime();
157-
new SetColor(Status.getInstance(), Color.kBlack).andThen(idleCommand).schedule();
156+
new SetColor(Status.getInstance(), Color.kBlack).andThen(new IdleCommand()).schedule();
158157

159158
// new SetColor(Status.getInstance(), Color.kDarkOrchid).schedule();
160159
// new ActionCommand(new ScannerAction(245, 0, 255, 200)).schedule();

0 commit comments

Comments
 (0)