We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13f4daa commit 7571782Copy full SHA for 7571782
1 file changed
mavutil.py
@@ -84,6 +84,9 @@ def __str__(self):
84
85
def add_message(messages, mtype, msg):
86
'''add a msg to array of messages, taking account of instance messages'''
87
+ if msg.get_type() == 'BAD_DATA':
88
+ # avoid dealing with instance field
89
+ return
90
if msg._instance_field is None or getattr(msg, msg._instance_field, None) is None:
91
# simple case, no instance field
92
messages[mtype] = msg
0 commit comments