Skip to content

Commit

Permalink
allow mavcan signing key in environment
Browse files Browse the repository at this point in the history
allows for all tools to be used with signed mavcan
  • Loading branch information
tridge committed May 26, 2023
1 parent 8fba242 commit 145dce3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dronecan/driver/mavcan.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ def __init__(self, url, **kwargs):
self.proc.daemon = True
self.proc.start()

# allow signing pass phrase in environment
pass_phrase = os.environ.get("DRONECAN_SIGNING_KEY",None)
if pass_phrase:
self.set_signing_passphrase(pass_phrase)

def close(self):
pass

Expand Down

0 comments on commit 145dce3

Please sign in to comment.