Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,10 @@ public List<PhotonPipelineResult> getAllUnreadResults() {
verifyVersion();
updateDisconnectAlert();

List<PhotonPipelineResult> ret = new ArrayList<>();

// Grab the latest results. We don't care about the timestamps from NT - the metadata header has
// this, latency compensated by the Time Sync Client
var changes = resultSubscriber.getAllChanges();
List<PhotonPipelineResult> ret = new ArrayList<>(changes.size());
for (var c : changes) {
var result = c.value;
checkTimeSyncOrWarn(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ public String getInterfaceUUID() {
}

public List<PacketResult<T>> getAllChanges() {
List<PacketResult<T>> ret = new ArrayList<>();

// Get /all/ changes since last call to readQueue
var changes = subscriber.readQueue();

List<PacketResult<T>> ret = new ArrayList<>(changes.length);
for (var change : changes) {
ret.add(parse(change.value, change.timestamp));
}
Expand Down
Loading