LogAnalyser: fix buffer calculations

This commit is contained in:
Holger Steinhaus 2015-05-05 20:15:22 +02:00 committed by Randy Mackay
parent a146b188a7
commit 46c3c26065
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class DataflashLog(object):
self._formats = {128:BinaryFormat}
data = bytearray(f.read())
offset = 0
while len(data) > offset:
while len(data) > offset + ctypes.sizeof(logheader):
h = logheader.from_buffer(data, offset)
if not (h.head1 == 0xa3 and h.head2 == 0x95):
if ignoreBadlines == False: