Skip to content

Commit

Permalink
external_example: fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Nov 6, 2017
1 parent d4688a2 commit c59a74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions external_example/plugins/example/example_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void ExampleImpl::init()

_parent->register_mavlink_message_handler(
MAVLINK_MSG_ID_HEARTBEAT,
std::bind(&ExampleImpl::process_heartbeat, this, _1), (void *)this);
std::bind(&ExampleImpl::process_heartbeat, this, _1), this);

}

Expand All @@ -31,14 +31,14 @@ void ExampleImpl::deinit()

void ExampleImpl::say_hello() const
{
Debug() << "Hello world, I'm a new plugin.";
LogInfo() << "Hello world, I'm a new plugin.";
}

void ExampleImpl::process_heartbeat(const mavlink_message_t &message)
{
UNUSED(message);

Debug() << "I received a heartbeat";
LogDebug() << "I received a heartbeat";
}


Expand Down

0 comments on commit c59a74a

Please sign in to comment.