Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Mar 22, 2024
1 parent fb5f529 commit 94ffce9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions photon-lib/src/main/java/org/photonvision/PhotonCamera.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class PhotonCamera implements AutoCloseable {
IntegerSubscriber heartbeatEntry;
DoubleArraySubscriber cameraIntrinsicsSubscriber;
DoubleArraySubscriber cameraDistortionSubscriber;
MultiSubscriber m_topicNameSubscriber;
MultiSubscriber topicNameSubscriber;
NetworkTable rootPhotonTable;

@Override
Expand All @@ -100,7 +100,7 @@ public void close() {
pipelineIndexRequest.close();
cameraIntrinsicsSubscriber.close();
cameraDistortionSubscriber.close();
m_topicNameSubscriber.close();
topicNameSubscriber.close();
}

private final String path;
Expand Down Expand Up @@ -156,7 +156,7 @@ public PhotonCamera(NetworkTableInstance instance, String cameraName) {
versionEntry = rootPhotonTable.getStringTopic("version").subscribe("");

// Existing is enough to make this multisubscriber do its thing
m_topicNameSubscriber =
topicNameSubscriber =
new MultiSubscriber(
instance,
new String[] {"/photonvision/"},
Expand Down Expand Up @@ -373,8 +373,8 @@ private void verifyVersion() {
}

DriverStation.reportError(
"Found the following PhotonVision cameras active on NetworkTables:\n"
+ String.join("\n", cameraNameStr),
"Found the following PhotonVision cameras on NetworkTables:\n"
+ cameraNameStr.toString(),
false);
}
}
Expand Down

0 comments on commit 94ffce9

Please sign in to comment.