Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Dec 28, 2023
1 parent 1c355ae commit 4375ff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import edu.wpi.first.networktables.IntegerSubscriber;
import java.io.IOException;
import java.util.ArrayList;
import org.photonvision.common.ProgramStatus;
import org.photonvision.common.configuration.ConfigManager;
import org.photonvision.common.configuration.HardwareConfig;
import org.photonvision.common.configuration.HardwareSettings;
Expand Down Expand Up @@ -186,8 +185,8 @@ public void statusLEDUpdate() {
}
}

if(this.systemRunning){
if(!this.ntConnected){
if (this.systemRunning) {
if (!this.ntConnected) {
if (anyTarget) {
// alternate blue/yellow
statusLED.setRGB(blinky, blinky, !blinky);
Expand All @@ -205,7 +204,7 @@ public void statusLEDUpdate() {
}
}
} else {
//Faulted, not running... blinky red
// Faulted, not running... blinky red
statusLED.setRGB(blinky, false, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public StatusLED(List<Integer> statusLedPins) {
}

public void setRGB(boolean r, boolean g, boolean b) {
//System.out.printf("DEBUG setting LED's to %b %b %b\n", r, g, b);
// System.out.printf("DEBUG setting LED's to %b %b %b\n", r, g, b);
redLED.setState(!r);
redLED.setBrightness(r ? 0 : 100);
greenLED.setState(!g);
Expand Down

0 comments on commit 4375ff4

Please sign in to comment.