mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix PhotonCamera typestring checks (#1480)
Previously NT would quietly drop readQueue changes.
This commit is contained in:
@@ -88,7 +88,9 @@ public class PacketSubscriber<T> implements AutoCloseable {
|
||||
|
||||
// TODO - i can see an argument for moving this logic all here instead of keeping in photoncamera
|
||||
public String getInterfaceUUID() {
|
||||
return subscriber.getTopic().getProperty("message_uuid");
|
||||
// ntcore hands us a JSON string with leading/trailing quotes - remove those
|
||||
var uuidStr = subscriber.getTopic().getProperty("message_uuid");
|
||||
return uuidStr.replace("\"", "");
|
||||
}
|
||||
|
||||
public List<PacketResult<T>> getAllChanges() {
|
||||
|
||||
Reference in New Issue
Block a user