Skip to content

Commit

Permalink
Merge pull request #664 from Dronecode/fix-passthrough-reset
Browse files Browse the repository at this point in the history
mavlink_passthrough: reset intercepting messages
  • Loading branch information
julianoes committed Feb 11, 2019
2 parents 8556877 + c2f1831 commit 1a62225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/mavlink_passthrough/mavlink_passthrough_impl.cpp
Expand Up @@ -17,7 +17,11 @@ MavlinkPassthroughImpl::~MavlinkPassthroughImpl()

void MavlinkPassthroughImpl::init() {}

void MavlinkPassthroughImpl::deinit() {}
void MavlinkPassthroughImpl::deinit()
{
_parent->intercept_incoming_messages(nullptr);
_parent->intercept_outgoing_messages(nullptr);
}

void MavlinkPassthroughImpl::enable() {}

Expand Down

0 comments on commit 1a62225

Please sign in to comment.