To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 707a4952 authored by Roman Trüb's avatar Roman Trüb
Browse files

fix issue with multiple LocalTimestampPkt in batch (see issue #93)

parent 6eca6f47
......@@ -458,14 +458,14 @@ def splitEpochs(pktList):
followingRefpktIdx = None
for i in range(startIdx, len(pktList)):
if type(pktList[i]) in (SwoParser.LocalTimestampPkt, SwoParser.OverflowPkt):
if not currentRefpktIdx:
if currentRefpktIdx is None:
currentRefpktIdx = i
else:
followingRefpktIdx = i
break
# we expect that there is at least 1 ref packet
assert currentRefpktIdx
assert not currentRefpktIdx is None
# ref pkt should not be local timestamp overflow packet
if type(pktList[currentRefpktIdx]) == SwoParser.LocalTimestampPkt:
assert pktList[currentRefpktIdx].ts != FULL_TIMESTAMP
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment