diff --git a/src/main/java/frc/robot/Commands/Desaccumuler.java b/src/main/java/frc/robot/Commands/Desaccumuler.java index a393e20..b99aa0f 100644 --- a/src/main/java/frc/robot/Commands/Desaccumuler.java +++ b/src/main/java/frc/robot/Commands/Desaccumuler.java @@ -22,7 +22,7 @@ public class Desaccumuler extends Command { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if(accumulateur.photocell() || accumulateur.photocell2()){accumulateur.desaccumule(0.1);} + if(!accumulateur.photocell() || !accumulateur.photocell2()){accumulateur.desaccumule(0.1);} } // Called once the command ends or is interrupted.