Skip to content

Commit

Permalink
pymavlink: handle missing Columns column
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Tridgell committed Jan 3, 2014
1 parent 62f1021 commit 894c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymavlink/DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _parse_next(self):
print("Failed to parse %s/%s with len %u (remaining %u)" % (fmt.name, fmt.msg_struct, len(body), self.remaining))
raise
name = null_term(fmt.name)
if name == 'FMT':
if name == 'FMT' and elements[0] not in self.formats:
# add to formats
# name, len, format, headings
self.formats[elements[0]] = DFFormat(null_term(elements[2]), elements[1],
Expand Down

0 comments on commit 894c3e3

Please sign in to comment.