Skip to content

Commit e77aad3

Browse files
committed
Fix bug calling wrong command from oi
1 parent 175efed commit e77aad3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Robot2019/src/main/java/frc/robot

Robot2019/src/main/java/frc/robot/OI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
import frc.robot.commands.IntakeOnlyCargo;
1818
import frc.robot.commands.NormalDrive;
1919
import frc.robot.commands.SetArcadeOrTank;
20-
import frc.robot.commands.SetLight;
2120
import frc.robot.commands.SlowDrive;
2221
import frc.robot.commands.ToggleCamera;
2322
import frc.robot.commands.ToggleHatch;
23+
import frc.robot.commands.ToggleLight;
2424
import frc.robot.commands.WobbleDrive;
2525
import frc.robot.subsystems.Cargo;
2626
import frc.robot.subsystems.Climber;
@@ -82,7 +82,7 @@ public class OI {
8282
toggleCameraBtn.whenPressed(new ToggleCamera(driveCamera, hatchCamera, cameraServer));
8383

8484
cycleLightBtn = new JoystickButton(manipulator, Manip.START);
85-
cycleLightBtn.whenPressed(new SetLight(lights));
85+
cycleLightBtn.whenPressed(new ToggleLight(lights));
8686
}
8787

8888
private class Manip {

0 commit comments

Comments
 (0)