Skip to content

Commit

Permalink
MAVExplorer: Add verbose output of DF log messages
Browse files Browse the repository at this point in the history
Use hasattr to check for dump_verbose function to avoid exception with older pymavlink
  • Loading branch information
shancock884 authored and peterbarker committed Jan 27, 2024
1 parent 6b30791 commit 7531734
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MAVProxy/tools/MAVExplorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ def cmd_dump(args):
continue
if verbose and "pymavlink.dialects" in str(type(msg)):
mavutil.dump_message_verbose(sys.stdout, msg)
elif verbose and hasattr(msg,"dump_verbose"):
msg.dump_verbose(sys.stdout)
else:
print("%s %s" % (timestring(msg), msg))
mlog.rewind()
Expand Down

0 comments on commit 7531734

Please sign in to comment.