Skip to content

Commit

Permalink
Skip WPILOG records with unknown entries
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Oct 16, 2024
1 parent 3266500 commit 3a40d30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hub/dataSources/wpilog/wpilogWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ async function start(data: Uint8Array) {
log.setMetadataString(entryIds[setMetadataData.entry], setMetadataData.metadata);
}
}
} else {
} else if (entry in entryIds) {
let key = entryIds[entry];
dataRecordPositions[key].push(position);
if (key in dataRecordPositions) {
dataRecordPositions[key].push(position);
}
}

// Send progress update
Expand Down

0 comments on commit 3a40d30

Please sign in to comment.