Fix code changes
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / OI.java
index 4a0e946bffa1df4e9c7f69d7f69bd4db99980251..4ea52e6bc798ffa95ab29e59ae90309024350cad 100644 (file)
@@ -2,6 +2,7 @@ package org.usfirst.frc.team3501.robot;
 
 import org.usfirst.frc.team3501.robot.commands.driving.BrakeCANTalons;
 import org.usfirst.frc.team3501.robot.commands.driving.CoastCANTalons;
+
 import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear;
 import org.usfirst.frc.team3501.robot.commands.intake.ReverseIntakeContinuous;
 import org.usfirst.frc.team3501.robot.commands.intake.RunIntakeContinuous;
@@ -84,7 +85,7 @@ public class OI /* implements KeyListener */ {
 
     togglePiston = new JoystickButton(rightJoystick,
         Constants.Shooter.TOGGLE_INDEXER);
-    togglePiston.whenPressed(new ToggleIndexerPiston());
+    togglePiston.toggleWhenPressed(new ToggleIndexerPiston());
 
     toggleDriveTrainPiston = new JoystickButton(rightJoystick,
         Constants.DriveTrain.TOGGLE_DRIVE_PISTON);
@@ -116,5 +117,4 @@ public class OI /* implements KeyListener */ {
    *
    * @Override public void keyTyped(KeyEvent e) { }
    */
-
 }