We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9ab5e35 + 0a31628 commit f6e946fCopy full SHA for f6e946f
can/io/blf.py
@@ -206,8 +206,11 @@ def __iter__(self):
206
raise BLFParseError()
207
208
obj_size = header[3]
209
+ obj_type = header[4]
210
# Calculate position of next object
- next_pos = pos + obj_size + (obj_size % 4)
211
+ next_pos = pos + obj_size
212
+ if obj_type != CAN_FD_MESSAGE_64:
213
+ next_pos += obj_size % 4
214
if next_pos > len(data):
215
# Object continues in next log container
216
break
@@ -239,7 +242,6 @@ def __iter__(self):
239
242
factor = 1e-9
240
243
timestamp = timestamp * factor + self.start_timestamp
241
244
- obj_type = header[4]
245
# Both CAN message types have the same starting content
246
if obj_type in (CAN_MESSAGE, CAN_MESSAGE2):
247
(
0 commit comments