Skip to content

Commit

Permalink
Fix #807
Browse files Browse the repository at this point in the history
  • Loading branch information
clydemcqueen committed Jul 11, 2023
1 parent e6ec764 commit a11ee02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def __str__(self):
return "lat=%.6f,lon=%.6f,alt=%.1f" % (self.lat, self.lng, self.alt)

def add_message(messages, mtype, msg):
if msg.get_type() == 'BAD_DATA':
return
'''add a msg to array of messages, taking account of instance messages'''
if msg._instance_field is None or getattr(msg, msg._instance_field, None) is None:
# simple case, no instance field
Expand Down

0 comments on commit a11ee02

Please sign in to comment.