Skip to content

Commit 7571782

Browse files
committed
Fix #807
1 parent 13f4daa commit 7571782

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mavutil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def __str__(self):
8484

8585
def add_message(messages, mtype, msg):
8686
'''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
8790
if msg._instance_field is None or getattr(msg, msg._instance_field, None) is None:
8891
# simple case, no instance field
8992
messages[mtype] = msg

0 commit comments

Comments
 (0)