Skip to content

Commit

Permalink
[mw/mavlink] Make sure to match only message of the 'good' type
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Degroote committed Feb 8, 2016
1 parent f7d25ff commit 6e227fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/morse/middleware/mavlink/abstract_mavlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def process_msg(self):
def default(self, ci = 'unused'):
last_msg = None
missed = -1
self._msg = self._conn.recv_msg()
self._msg = self._conn.recv_match(type=self._type_name, blocking=False)
while self._msg:
last_msg = self._msg
self._msg = self._conn.recv_msg()
Expand Down

0 comments on commit 6e227fa

Please sign in to comment.