Skip to content

Commit

Permalink
Fix #807
Browse files Browse the repository at this point in the history
  • Loading branch information
clydemcqueen authored and tridge committed Jul 22, 2023
1 parent 21e3220 commit 54a19ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ def __str__(self):

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

0 comments on commit 54a19ce

Please sign in to comment.