mirror of https://github.com/ArduPilot/ardupilot
LogAnalyser: fix buffer calculations
This commit is contained in:
parent
a146b188a7
commit
46c3c26065
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue