Tools: correct error path for corrupt logs

This commit is contained in:
Peter Barker 2017-02-07 11:37:38 +11:00
parent 496ed18530
commit 043b7598d1
1 changed files with 2 additions and 0 deletions

View File

@ -676,6 +676,8 @@ class DataflashLog(object):
if h.head1 == 0xff and h.head2 == 0xff and h.msgid == 0xff:
print("Assuming EOF due to dataflash block tail filled with \\xff... (offset={off})".format(off=offset), file=sys.stderr)
break
offset += 1
continue
if h.msgid in self._formats:
typ = self._formats[h.msgid]