Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import re
import platform
from pymavlink import mavexpression
from pymavlink.dialects.v20 import common as mavlink_base
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can actually assume "common" exists here. A user may be using a set of messages completely unrelated to the normal dialects.

That's why other stuff in here is doing a try/except thing for other dialects...

import ssl

# We want to re-export x25crc here
Expand All @@ -31,7 +32,7 @@

# Store the MAVLink library for the currently-selected dialect
# (set by set_dialect())
mavlink = None
mavlink : mavlink_base = None

# Store the mavlink file currently being operated on
# (set by mavlink_connection())
Expand Down